Superfície de API v3
Alpha, na linha 3.6.x. Estas rotas existem hoje no código; o formato das
requisições e respostas ainda pode mudar dentro da 3.x. Para campos e esquemas,
consulte GET /openapi.json no seu servidor ou a página do
Swagger UI.
Caminho base
Não há caminho base. As rotas são montadas na raiz do servidor, por
exemplo http://localhost:3939/recall. Apenas a federação, o endpoint
WebSocket e a rota de recuperação de eventos ficam sob /memory/.
Ciclo de vida da sessão
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 collapsingAliases: POST /sessions, POST /sessions/{id}/turns e
DELETE /sessions/{id} encaminham para start, turn e discard.
Veja: Memória de sessão e 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 nextVeja: Recuperação de três tiers
Escrever e esquecer
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 memoryNão existe POST /facts. Os facts são criados com POST /remember.
Veja: Primitivas cognitivas
Decisões e memória 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 firstVeja: Memória procedural
Entidades e 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 encaminha para GET /graph?focus={id}.
Veja: Relações de hipergrafo
Episódios e 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 instantVeja: Episódios codificados por delta
Tarefas e 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} DismissVeja: Tarefas e eventos
Cache de raciocínio
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 chainVeja: Motor de destilação de CoT
Autoedição
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-modelVeja: Memória autoeditável
Governança e revisão
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 encaminha para POST /consolidation/trigger.
Veja: Memory Worth · Gate de consolidação
Saúde
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:adminAdministração, chaves e dados
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 e POST /admin/import encaminham para
POST /export e POST /import.
A especificação também cobre tenants, membros de workspace e tokens de usuário
(/tenants/*, /workspaces/*, /users).
Federação
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 rotas só são registradas quando o servidor inicia com seu módulo de federação conectado. O snapshot de OpenAPI incluído neste site as contém.
Veja: Protocolo de federação · Consenso de âncoras de confiança
Fluxos de eventos
GET /memory/events Catch-up for missed WebSocket events
GET /memory/ws WebSocket subscriptions