MemClaw / docs
API Reference

API Reference

Auto-generated REST reference, sourced from the FastAPI OpenAPI spec.

This reference is generated from the live FastAPI spec served at /api/openapi.json. The committed snapshot at openapi.snapshot.json is the build-time source of truth; CI fails when it drifts.

Regenerate locally with:

API_BASE_URL=https://memclaw.net  npm run regen:openapi   # managed
API_BASE_URL=http://localhost:8000 npm run regen:openapi  # self-hosted

Authentication

All endpoints accept X-API-Key. For per-tenant keys (mc_*), also send X-Tenant-ID. See Auth modes.

Errors follow the canonical envelope ({ error: { code, message, details? } }). REST responses also keep a top-level detail for back-compat.

Curated pages

A hand-picked subset rendered with the <APIPage> component. The list is short by design; for everything else, fetch the live OpenAPI directly.

The full surface

For the complete set (admin · agents · audit-log · crystallize · documents · entities · evolve · fleet · graph · ingest · insights · keystones · memories · plugin · recall · search · settings · stats · stm · tenants · whoami), use the live Swagger UI at /api/docs or pull the spec at /api/openapi.json.