Skip to main content
Stores a new memory for the authenticated user. Memories are scoped to the user within their organization and can be used by AI agents to personalize responses.
Authorization
string
required
Bearer token obtained from the authenticate endpoint.
content
string
required
The memory content to store.

Response

Returns the created memory object.
id
string
Unique memory ID (UUID).
organization_id
string
Organization this memory belongs to.
member_id
string
Member this memory belongs to.
content
string
The memory content.
created_at
string
ISO 8601 timestamp when the memory was created.
updated_at
string
ISO 8601 timestamp when the memory was last updated.
curl -X POST https://api.trellis.sh/v1/user-memories \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content": "Prefers responses in bullet points"}'
{
  "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-01T10:00:00+00:00"
}