Skip to main content
Submits a user–assistant conversation to the project. Structured memories are automatically extracted from the messages and stored asynchronously. The response includes an event ID that can be used to track processing progress.
Permission required: project:mem_add · instance

Path Parameters

string
required
Project ID (format: proj-{uuid})

Request Body

array
required
Array of message objects representing the conversation. Each message contains a role (user or assistant) and content.
string
Unique identifier of the user associated with this memory
string
Unique identifier of the chat session
boolean
default:"true"
Whether to infer memories from messages, or store messages directly. Defaults to true (infer mode).
object
Additional arbitrary metadata key-value pairs

Response

object