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. Tags for filtering. Max 10 tags, 64 characters each.
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.
Whether the memory was deduplicated (merged with an existing similar memory instead of creating a new one).
Embedding tokens consumed.
Example
curl -X POST https://api.memoclaw.com/v1/store \
-H "Content-Type: application/json" \
-d '{
"content": "User prefers dark mode and vim keybindings",
"metadata": {
"tags": ["preferences", "ui"]
},
"importance": 0.8
}'
{
"id" : "550e8400-e29b-41d4-a716-446655440000" ,
"stored" : true ,
"deduplicated" : false ,
"tokens_used" : 15
}