Skip to main content
POST

Authorizations

Authorization
string
header
required

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

Body

application/json
sessionId
string
required

The ID of the session

contents
object[]
required

Array of content objects. Each object must contain at least the 'content' field. Additional properties are allowed.

metadata
object

Optional metadata for the memory context. Defaults to ["default"] if not provided.

Response

Memory context added successfully

success
boolean
required
Example:

true

context_id
string
required
Example:

"ctx_01HXYZABC"

processed_documents
number
Example:

2