Store new user memories for future reference.
This API allows you to add memories in two formats:
The stored memories will be chunked, embedded, and indexed for semantic search and retrieval.
true, Cortex will process and analyze the memory content to improve its indexing and retrieval capabilities. This includes extracting key concepts, understanding context, and optimizing how the memory is stored for better semantic search and recall.
raw_text or user_assistant_pairs - do not provide both in the same requestBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for the tenant/organization
"tenant_1234"
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
"sub_tenant_4567"
Single raw text memory to store. If both raw_text and user_assistant_pairs are provided, raw_text will be used.
Array of user/assistant conversation pairs to store as a single memory
Expiry time in seconds for the memory (optional)
If true, process and compress chunks into inferred representations before indexing (default: False)
true
Custom instructions to guide cortex
User's name for personalization
"John Doe"
Optional custom memory ID (auto-generated if not provided)
"memory_1234"
Successful Response
Response model for adding a new user memory.
Indicates whether the memory addition operation was successful
true
Confirms whether the memory was successfully stored in the system
true
Unique identifier assigned to the newly created memory
"memory_1234"
Source identifier from the memory service
"CortexDoc1234"
Total number of chunks created from the memory
1
Number of original (non-inferred) chunks created
1
Number of inferred chunks created
1