Store Memory
API Reference
Store Memory
POST /v1/store — Store a single memory with semantic embeddings.
POST
Store Memory
Price: $0.005 USDC
Request Body
The memory text. Max 8,192 characters.
Arbitrary key-value metadata. Max 4 KB, 20 keys, 3 levels deep.
Float between 0 and 1. Affects ranking in recall. Default:
0.5.Isolate memories per project or context. Default:
"default". Max 255 characters.One of:
correction, preference, decision, project, observation, general. Each type has a different decay half-life. Default: "general".Session identifier for multi-agent scoping. Max 255 characters.
Agent identifier for multi-agent scoping. Max 255 characters.
ISO 8601 date string. Memory auto-expires after this time and is excluded from all queries. Must be in the future.
Pin this memory to exempt it from decay. Default:
false.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)
UUID of the stored memory.
Always
true.Whether the memory was deduplicated (merged with an existing similar memory instead of creating a new one).
Embedding tokens consumed.
Example
Response