Skip to main content
POST
Create Memory

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Workspace-Id
string | null

The workspace ID

Body

application/json

Schema for creating a new memory.

user_id
string
required

The user ID who owns the memory.

memory
string
required

The memory content to store.

memory_type
string | null
default:user

The type of memory. 'user', 'agent', 'team', 'workflow'.

topics
string[] | null

Topics associated with the memory.

metadata
Metadata · object | null

Additional metadata for the memory.

Response

Successful Response

Schema for memory creation response.

memory_id
string
required

ID of the created memory.

message
string
required

Success message.

memory
MemoryResponse · object
required

The created memory details.