Skip to main content

API reference

The public API focuses on developer memory flows. Handwritten pages are the primary reference in this release; the machine-readable OpenAPI bundle remains available for client generation and agent tooling.

Core endpoints

PageEndpointUse it for
RetainPOST /api/v2/containers/{container_tag}/retainSave a compact fact or candidate content.
RecallPOST /api/v2/containers/{container_tag}/recallRetrieve governed memory context.
Agent ContextPOST /api/v2/containers/{container_tag}/agent/contextBuild pre-turn prompt-ready context.
WritebackPOST /api/v2/containers/{container_tag}/agent/writebackCapture post-turn outcomes.
ReflectPOST /api/v2/containers/{container_tag}/reflectAnswer a question using memory.
CourtroomGET /api/v1/memories/{memory_id}/courtroomInspect evidence and verdicts.
OpenAI-compatible GatewayPOST /v1/chat/completions, POST /v1/responsesUse familiar model-client envelopes with memory.
MCPPOST /mcpConnect agent tools.

Shared behavior

  • Auth uses scoped keys. Admin keys are for operators, not normal agents.
  • container_tag defaults to jeethendra for first-party integrations.
  • Public UX and API diagnostics should prefer trust_bucket over legacy raw confidence and trust_score.
  • Missing evidence, provider outages, or fallback paths should be reported as degraded/unavailable rather than hidden.

OpenAPI browser and machine-readable spec

Browse the API and schemas inline:

https://docs.jithendranara.dev/api-reference/openapi

The curated public OpenAPI bundle is available at:

https://docs.jithendranara.dev/openapi.public.json

It intentionally excludes admin, private auth, migration, proof, destructive, and internal GCP bridge routes.

Next steps