Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

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

Body

application/json
agent_id
string
required

The agent ID of the user memory.

memory
string
required

The memory of the user memory.

user_prompt
string | null

The user prompt of the user memory.

context
string | null

The context of the user memory.

Response

Successfully created user memory

object
enum<string>
required

The object type, which is always user_memory.

Available options:
user_memory
id
string
required

The ID of the user memory.

updated_at
string
required

The updated at of the user memory.

created_at
string
required

The created at of the user memory.

user_prompt
string
required

The user prompt of the user memory.

context
string[]
required

The context of the user memory.

agent_id
string
required

The agent ID of the user memory.

user_id
string
required

The user ID of the user memory.

memory
string[]
required

The memory of the user memory.

credits
object | null

Credit consumption for this user-memory creation. consumed reflects the billed embedding work for the request. null when the billing write fails after the memory is successfully created.