Returns all memories for a specific member within the organization, ordered by most recently updated first.
Bearer token obtained from the authenticate endpoint. The authenticated user must be an admin.
ID of the member whose memories to list.
Response
List of memory objects for the specified member.
Organization this memory belongs to.
Member this memory belongs to.
ISO 8601 timestamp when the memory was created.
ISO 8601 timestamp when the memory was last updated.
curl -X GET "https://api.trellis.sh/v1/admin/user-memories?member_id=member_01HX..." \
-H "Authorization: Bearer YOUR_TOKEN"
import requests
response = requests.get(
"https://api.trellis.sh/v1/admin/user-memories",
headers={"Authorization": "Bearer YOUR_TOKEN"},
params={"member_id": "member_01HX..."},
)
memories = response.json()["user_memories"]
const memberId = "member_01HX...";
const response = await fetch(
`https://api.trellis.sh/v1/admin/user-memories?member_id=${memberId}`,
{
headers: { Authorization: "Bearer YOUR_TOKEN" },
}
);
const { user_memories } = await response.json();
{
"user_memories": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"organization_id": "org_01HX...",
"member_id": "member_01HX...",
"content": "Prefers responses in bullet points",
"created_at": "2025-03-01T10:00:00+00:00",
"updated_at": "2025-03-15T14:30:00+00:00"
}
]
}
{
"detail": "Missing Authorization header"
}
{
"detail": "Admin privileges required"
}