API referenceRoutes by area

v3 API surface

Alpha, on the 3.6.x line. These routes exist in the code today; request and response shapes can still change within 3.x. For fields and schemas, read GET /openapi.json on your server or the Swagger UI page.

Base path

There is no base path. Routes are mounted at the root of the server, for example http://localhost:3939/recall. Only federation, the WebSocket endpoint and the event catch-up route live under /memory/.

Session lifecycle

POST   /session/start                      Start a session
GET    /session/list                       List sessions
GET    /session/stats                      Sessions and episodes per day
GET    /session/{id}                       Fetch a session
POST   /session/{id}/turn                  Append a turn
POST   /session/{id}/pin                   Pin or unpin a turn
POST   /session/{id}/scratch               Update the scratch pad
POST   /session/{id}/feedback              Record user feedback
POST   /session/{id}/collapse              Collapse into durable memory
POST   /session/{id}/discard               Discard without collapsing

Aliases: POST /sessions, POST /sessions/{id}/turns and DELETE /sessions/{id} forward to start, turn and discard.

See: Session memory and collapse

Recall

POST   /recall                             Blended lexical and vector recall, now or at asOf; also items pulled by federation
POST   /recall/hot                         Hot tier only, no embedding
POST   /recall/unified                     Knowledge base and memory, blended
POST   /recall/explain                     Recall with a per-hit scoring breakdown
GET    /recall/metrics                     Recall calls, zero-hit share and latency per day
GET    /anticipation                       Memories likely to be needed next

See: Three-tier retrieval

Writing and forgetting

POST   /remember                           Write a memory (kind selects the primitive)
POST   /capture                            Passive capture: extract facts from subagent output
DELETE /forget/{kind}/{id}                 Forget a memory of any kind
POST   /topic-key/suggest                  Derive a topic key from a subject and body

Facts

GET    /facts                              List (filters, full-text, keyset cursor)
GET    /facts/stats                        Counts
POST   /facts/compare                      Compare two facts
GET    /facts/{id}                         Read
PATCH  /facts/{id}                         Patch
DELETE /facts/{id}                         Forget (bitemporal close)
POST   /facts/{id}/pin                     Pin or unpin
POST   /facts/{id}/restore                 Restore
POST   /facts/{id}/relocate                Move to another workspace
GET    /facts/{id}/citations               Sources of a fact
DELETE /facts/{id}/hard                    Hard delete (needs memory:hard_delete)
DELETE /facts/purge                        Hard-delete all forgotten facts (needs memory:hard_delete)
GET    /citations                          Citations of any memory

There is no POST /facts. Facts are created with POST /remember.

See: Cognitive primitives

Decisions and procedural memory

GET    /decisions                          List
POST   /decisions                          Record a decision
GET    /decisions/{id}                     Read
PATCH  /decisions/{id}                     Patch

GET    /strategies                         List
POST   /strategies                         Store a strategy
GET    /strategies/{id}                    Read
PATCH  /strategies/{id}                    Patch
DELETE /strategies/{id}                    Archive
POST   /strategies/{id}/rate               Record a success or failure outcome

GET    /workflows                          List
POST   /workflows                          Store a workflow
GET    /workflows/{id}                     Read
PATCH  /workflows/{id}                     Patch

GET    /skills                             List
POST   /skills                             Store a skill
GET    /skills/{id}                        Read
PATCH  /skills/{id}                        Patch

POST   /procedural/optimize                Run one prompt optimization pass
GET    /procedural/prompt/{agent}          Active or candidate prompt version
GET    /procedural/versions/{agent}        Prompt versions, newest first

See: Procedural memory

Entities and graph

GET    /entities                           List
POST   /entities                           Create
GET    /entities/{id}                      Read
PATCH  /entities/{id}                      Rename, edit aliases, merge
GET    /entities/{id}/facts                Facts linked to the entity
POST   /entities/{id}/link-user            Link a person entity to an account
DELETE /entities/{id}/link-user            Unlink it

GET    /relations                          List
POST   /relations                          Create a relation
PATCH  /relations/{id}                     Apply a judgment
DELETE /relations/{id}                     Retract
POST   /relations/traverse                 Breadth-first traversal from a node

GET    /hyperedges                         List
POST   /hyperedges                         Create an n-ary relation
GET    /hyperedges/{id}                    Read
PATCH  /hyperedges/{id}                    Patch
DELETE /hyperedges/{id}                    Archive

GET    /graph                              Typed nodes and relations
GET    /graph/traverse                     Multi-hop traversal from an entity
GET    /graph/path                         Shortest path between two nodes
GET    /graph/stats                        Graph counts

Alias: GET /entities/{id}/graph forwards to GET /graph?focus={id}.

See: Hypergraph relations

Episodes and timeline

GET    /episodes                           List in a date window
POST   /episodes                           Create
GET    /episodes/{id}                      Read, with linked facts
GET    /episodes/{id}/timeline             Timeline of one episode
GET    /timeline                           Recent fact-lifecycle events
GET    /timeline/counts                    Decision events since an instant

See: Delta-encoded episodes

Tasks and events

GET    /tasks                              List
POST   /tasks                              Create
GET    /tasks/{id}                         Read
PATCH  /tasks/{id}                         Update
DELETE /tasks/{id}                         Archive
POST   /tasks/{id}/delegate                Delegate to another agent

GET    /events                             List
POST   /events                             Record an event
GET    /events/{id}                        Read
PATCH  /events/{id}/sensitivity            Raise the sensitivity
POST   /events/{id}/annotations            Append an annotation
DELETE /events/{id}                        Always refused: 409 event_immutable

GET    /reminders                          List
POST   /reminders                          Create a reminder
DELETE /reminders/{id}                     Dismiss

See: Tasks and events

Reasoning cache

GET    /reasoning                          List chains
POST   /reasoning                          Create a chain
GET    /reasoning/{id}                     Read
PATCH  /reasoning/{id}                     Update
DELETE /reasoning/{id}                     Archive
POST   /reasoning/resolve                  Look a question up in the cache
POST   /reasoning/record                   Record a chain into the cache
POST   /reasoning/feedback                 Report the outcome of a cached chain

See: CoT distillation engine

Self-edit

POST   /self/edit                          Apply a self-edit action
POST   /self/reflect                       Run a reflection cycle for an agent
GET    /self/profile                       Read the agent profile
GET    /metacognition                      The workspace self-model

See: Self-editing memory

Governance and review

GET    /governance/worth                   Worth scores per fact
POST   /governance/gate                    Pin a fact against consolidation, or release it
GET    /governance/drift                   Memory drift report
POST   /consolidation/trigger              Run a consolidation pass
GET    /conflicts                          Conflicting pairs
POST   /conflicts/{id}/resolve             Resolve a conflict
GET    /review                             Review queue
GET    /review/count                       Queue size
POST   /review/enqueue                     Queue a fact or decision for review
POST   /review/{id}/resolve                Resolve an item
GET    /composition/rules                  Inference rules
POST   /composition/rules                  Create a rule
GET    /composition/rules/{id}             Read a rule
PATCH  /composition/rules/{id}             Patch a rule
POST   /composition/dry-run                Try a rule without writing
GET    /composition/inferences             Recorded derivations

Alias: POST /admin/consolidate forwards to POST /consolidation/trigger.

See: Memory Worth · Consolidation Gate

Health

GET    /health                             Cognitive vitals of the workspace
GET    /health/cognitive                   Cognitive health snapshot
GET    /health/history                     Recent readiness results
GET    /health/snapshots                   Daily health snapshots
GET    /doctor                             Operational preflight checks
GET    /health/live                        Liveness probe, no key
GET    /health/ready                       Readiness probe, no key
GET    /health/deep                        Per-dependency check, needs memory:admin

Admin, keys and data

POST   /admin/keys                         Create an API key (federation: true for a peer's mk_fed_ key)
GET    /admin/keys                         List keys
GET    /admin/keys/{keyId}                 Key metadata
DELETE /admin/keys/{keyId}                 Revoke
POST   /admin/keys/{keyId}/rotate          Rotate
POST   /admin/scoped-keys                  Issue a scoped-scheme key: mk_live_, mk_sess_ or mk_admin_ (TOTP)
POST   /admin/scoped-keys/{id}/rotate      Rotate a scoped-scheme key (the old one keeps 7 days)
DELETE /admin/scoped-keys/{id}             Revoke a scoped-scheme key at once
GET    /admin/stats                        Workspace stats
GET    /admin/agent-policies               RBAC policies of every agent
GET    /admin/agent-policy                 One agent's policy, ?agentId= (also PUT, DELETE)
POST   /admin/erasure                      GDPR crypto-erasure of a user or an actor (needs memory:hard_delete)
GET    /audit                              Audit log
GET    /audit/stats                        Audit counts per day
GET    /export                             Workspace dump (JSON)
GET    /export/jsonl                       Workspace dump (gzip JSONL)
POST   /import                             Import a gzip JSONL dump
GET    /config/llm                         Workspace LLM settings (also PUT, DELETE)
GET    /config/retention                   Retention settings (also PUT, DELETE)
GET    /workspace-mode                     Learning or production mode (also PUT)
GET    /me                                 The calling key: workspace, scopes, plan
GET    /webhooks                           Webhooks (also POST, and GET, PATCH, DELETE on /webhooks/{id})

Aliases: POST /admin/export and POST /admin/import forward to POST /export and POST /import.

The spec also covers tenants, workspace members and user tokens (/tenants/*, /workspaces/*, /users).

Federation

GET    /memory/federation/peers                    Known peers, without their secrets
POST   /memory/federation/peers                    Add a peer
GET    /memory/federation/peers/pending            Always empty: there is no discovery
POST   /memory/federation/peers/{id}/approve       Replace an existing peer's pinned key
POST   /memory/federation/peers/{id}/approve-key   Approve a key rotation
DELETE /memory/federation/peers/{id}               Remove a peer
GET    /memory/federation/items                    Facts and tombstones a peer pulls, by cursor
POST   /memory/federation/sync                     Pull from a peer into the caller's workspace; returns a jobId
GET    /memory/federation/sync/{jobId}             Poll a sync job of the caller's workspace
POST   /memory/federation/resolve                  Resolve a conflict between federated claims

These routes are registered only when the server boots with its federation module wired. The bundled OpenAPI snapshot includes them.

See: Federation protocol · Trust-anchor consensus

Event streams

GET    /memory/events                      Catch-up for missed WebSocket events
GET    /memory/ws                          WebSocket subscriptions

See also