Skip to content

API Reference

The REST API. Two ways to reach it, with different base paths:

Hosted (Gateway)Self-hosted (Engine)
Base URLhttps://api.cognimemo.comyour server, e.g. http://localhost:8888
Path base/v1/me/…/v1/default/…
Authper-project API key (Bearer)your own

me resolves to the project your API key belongs to — you never put a project id in the URL. See Gateway API for the hosted surface (projects, keys, spaces).

Authentication

Authorization: Bearer cmk_live_…

Keys are created in the console and carry scopes: retain, recall, graph:read, mcp. Mint least-privilege keys per integration.

Endpoints

OperationMethod & path
RetainPOST /v1/me/banks/{bank}/memories
RecallPOST /v1/me/banks/{bank}/memories/recall
ReflectPOST /v1/me/banks/{bank}/reflect
List memoriesGET /v1/me/banks/{bank}/memories
Delete memoryDELETE /v1/me/banks/{bank}/memories/{id}
Spaces & Banks…/spaces, …/spaces/{space}/banks/{bank}
EntitiesGET /v1/me/banks/{bank}/entities
Bank configPATCH /v1/me/banks/{bank}/config
AuditGET /v1/me/audit

Bank ids are URL-encoded — an email bank id jane@acme.com becomes jane%40acme.com.

Conventions

  • All bodies are JSON; responses are JSON.
  • Timestamps are ISO 8601.
  • Recall responses include a usage object (tokens_used, max_tokens, truncated) for metering.
  • Rate limits and quotas are per project; exceeding them returns 429.