Superficie de API v3
Alpha, en la línea 3.6.x. Estas rutas existen hoy en el código; la forma de
las peticiones y respuestas todavía puede cambiar dentro de 3.x. Para campos y esquemas,
consulta GET /openapi.json en tu servidor o la página de
Swagger UI.
Ruta base
No hay ruta base. Las rutas se montan en la raíz del servidor, por
ejemplo http://localhost:3939/recall. Solo la federación, el endpoint
WebSocket y la ruta de recuperación de eventos viven bajo /memory/.
Ciclo de vida de la sesión
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 collapsingAlias: POST /sessions, POST /sessions/{id}/turns y
DELETE /sessions/{id} reenvían a start, turn y discard.
Ver: Memoria de sesión y 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 nextVer: Recuperación de tres tiers
Escribir y olvidar
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 bodyFacts
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 memoryNo existe POST /facts. Los facts se crean con POST /remember.
Decisiones y memoria procedural
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 firstVer: Memoria procedural
Entidades y grafo
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 countsAlias: GET /entities/{id}/graph reenvía a GET /graph?focus={id}.
Episodios y 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 instantVer: Episodios codificados por delta
Tareas y eventos
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} DismissVer: Tareas y eventos
Caché de razonamiento
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 chainVer: Motor de destilación de CoT
Autoedición
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-modelVer: Memoria autoeditable
Gobernanza y revisión
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 derivationsAlias: POST /admin/consolidate reenvía a POST /consolidation/trigger.
Ver: Memory Worth · Gate de consolidación
Salud
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:adminAdministración, claves y datos
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})Alias: POST /admin/export y POST /admin/import reenvían a
POST /export y POST /import.
La especificación también cubre tenants, miembros de workspace y tokens de usuario
(/tenants/*, /workspaces/*, /users).
Federación
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 claimsEstas rutas solo se registran cuando el servidor arranca con su módulo de federación conectado. El snapshot de OpenAPI incluido en este sitio las contiene.
Ver: Protocolo de federación · Consenso de anclas de confianza
Flujos de eventos
GET /memory/events Catch-up for missed WebSocket events
GET /memory/ws WebSocket subscriptions