Price: $0.01 USDC
Request Body
Array of memory objects. Min 1, max 100. Each object accepts the same fields as Store Memory.Show Memory object fields
The memory text. Max 8,192 characters.
Arbitrary key-value metadata. Max 4 KB, 20 keys, 3 levels deep.
Float between 0 and 1. Default: 0.5.
Namespace to isolate memories. Default: "default". Max 255 characters.
Response (201 Created)
Array of UUIDs for the stored memories.
Number of memories stored.
Total embedding tokens consumed.
Example
curl -X POST https://api.memoclaw.dev/v1/store/batch \
-H "Content-Type: application/json" \
-d '{
"memories": [
{
"content": "User prefers dark mode and vim keybindings",
"metadata": { "tags": ["preferences"] },
"importance": 0.8
},
{
"content": "Project uses PostgreSQL with pgvector extension",
"metadata": { "tags": ["stack", "database"] },
"importance": 0.6
}
]
}'
{
"ids": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
],
"stored": true,
"count": 2,
"tokens_used": 28
}