Skip to main content
POST
Store Memory
Price: $0.005 USDC

Request Body

string
required
The memory text. Max 8,192 characters.
object
Arbitrary key-value metadata. Max 4 KB, 20 keys, 3 levels deep.
number
Float between 0 and 1. Affects ranking in recall. Default: 0.5.
string
Isolate memories per project or context. Default: "default". Max 255 characters.
string
One of: correction, preference, decision, project, observation, general. Each type has a different decay half-life. Default: "general".
string
Session identifier for multi-agent scoping. Max 255 characters.
string
Agent identifier for multi-agent scoping. Max 255 characters.
string
ISO 8601 date string. Memory auto-expires after this time and is excluded from all queries. Must be in the future.
boolean
Pin this memory to exempt it from decay. Default: false.
boolean
Lock the memory from future updates and deletes. Default: false. Once stored as immutable, the memory cannot be modified or removed (returns 409 Conflict).

Response (201 Created)

string
UUID of the stored memory.
boolean
Always true.
boolean
Whether the memory was deduplicated (merged with an existing similar memory instead of creating a new one).
number
Embedding tokens consumed.

Example

Response