API Reference
Managed cloud memory routes for the SDK, the advanced cloud MCP package, and dashboard operations.
This page documents the managed cloud route family. In local-first mode, Coppermind exposes the same logical memory operations without requiring cloud credentials.
Memory operations
The stable logical operations are:
- ingest
- search
- inspect
- stats
- delete
The cloud route family maps those operations onto HTTP.
SDK and advanced cloud MCP routes
These routes are used by the SDK and the advanced direct-cloud MCP package. They require API key auth.
Dashboard-only routes
These routes are used by the dashboard and require dashboard auth.
Authentication
API-key requests use:
Authorization: Bearer ***
The API key identifies the tenant. A logical userId can still scope memory inside that tenant.
Example requests
Search
GET /v1/memory/search?query=release%20checklist&limit=5
Ingest
{
"userId": "default",
"data": [
{
"content": "Release after smoke tests pass.",
"tags": ["release", "ops"]
}
]
}
Delete
{
"userId": "default",
"episodeIds": ["ep_123"]
}
Send that delete payload to POST /v1/memory/delete.
Example response shapes
Memory retrieval returns fragments:
{
"userId": "default",
"fragments": [
{
"id": "mem_123",
"content": "Release after smoke tests pass.",
"tags": ["release", "ops"],
"createdAt": "2026-04-09T00:00:00.000Z"
}
],
"total": 1
}
Stats returns lightweight aggregates:
{
"totalEpisodes": 12,
"totalTokens": 1480,
"oldestAt": "2026-04-01T00:00:00.000Z",
"newestAt": "2026-04-09T00:00:00.000Z"
}
Common failure semantics
Common storage-related errors include:
memory_backend_not_configuredmemory_backend_unavailablebyodb_query_failed