Skip to main content
POST
Store interaction

Authorizations

Authorization
string
header
required

Unit API Key mapped to an agent in the agents collection. The proxy forces session_id = agentId.

Body

application/json
user_message
string
required

User-facing content to remember.

session_id
string

Placeholder — overwritten by the proxy.

ai_message
string

Optional assistant message paired with the user message.

context
object

Arbitrary metadata stored with the memory.

Response

Memory stored.

The response is of type object.