Skip to main content
POST
/
api
/
v1
/
memories
{
  "memory_id": "<string>",
  "message": "<string>",
  "memory": {
    "memory_id": "<string>",
    "user_id": "<string>",
    "memory": "<string>",
    "topics": [
      "<string>"
    ],
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "metadata": {}
  }
}
Create a new personal memory that can be used for context in future conversations and interactions.

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
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
object
required

The created memory details.