API Reference
The HTTP API is served by zoidmatter-api. Set ZOIDMATTER_API_KEY to require Authorization: Bearer <key> on every route except /health. The server refuses to start without a key unless ZOIDMATTER_ALLOW_INSECURE=1 is set (local/trusted-network only).
Authentication & Roles
API keys are SHA-256 hashed and resolve to an ApiIdentity with a role and allowed banks:
standard— own banks onlyadmin— cross-bank, cross-tenantservice— explicit bank list required
Core Endpoints
| Method | Path | Description |
|---|---|---|
POST | /v1/retain | Retain content as a memory unit |
POST | /v1/recall | Recall memories by semantic query; supports cross-bank with banks[] |
POST | /v1/reflect | Reflect on memories (synthesis) |
GET | /v1/graph | Query the memory graph |
GET | /v1/stats | Memory statistics |
GET | /health | Liveness probe (no auth) |
GET | /v1/memory | List memories with pagination |
POST | /v1/documents | Generic document ingestion (chunk + embed + register) |
GET | /v1/session-logs | List session log references |
POST | /v1/session-logs | Store a session log reference |
GET | /v1/bank/:id | Get bank config |
POST | /v1/bank/import | Import a bank template |
GET | /v1/banks | List banks |
POST | /v1/backup/run | Run a backup |
GET | /v1/backup/list | List backups |
POST | /v1/backup/restore | Restore a backup |
POST | /v1/backup/check | Verify a backup |
MCP
The MCP server exposes 25+ tools over HTTP at /mcp (port 8888). See the MCP Server page. An openapi.json export is planned to drive this reference and the client SDKs.