Creates a new memory for the specified member. Useful for pre-populating preferences or context for users before they begin using the product.
This endpoint requires admin privileges. Members can create their own memories via the self-service API.
Bearer token obtained from the authenticate endpoint. The authenticated user must be an admin.
ID of the member to create the memory for.
The memory content to store.
Response
Returns the created memory object.
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 POST https://api.trellis.sh/v1/admin/user-memories \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"member_id": "member_01HX...",
"content": "Focus on the APAC region for sales queries"
}'
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"organization_id": "org_01HX...",
"member_id": "member_01HX...",
"content": "Focus on the APAC region for sales queries",
"created_at": "2025-03-01T10:00:00+00:00",
"updated_at": "2025-03-01T10:00:00+00:00"
}