The endpoint pages in this section are generated from an OpenAPI specification, not hand-written. This page is the one authored page in the API Reference tab; it covers orientation and conventions that apply across every endpoint. The generated pages carry the per-endpoint request and response detail.The A2A binding rides the same REST listener but is outside the OpenAPI document by design:
openapi.json documents exactly the /v1/* router and is CI-parity-tested against it, so the checked-in reference is never stale. The A2A surface’s machine-readable description is its own agent card.Base URL
By default the REST server binds to0.0.0.0:8080, so locally the base URL is:
Authentication
Every/v1/* request must include your API key in the x-hyphae-key header. A request without a valid key is rejected with 401.
GET /healthz (always — liveness probes do not need a key), and, when the A2A surface is enabled, its agent card at GET /.well-known/agent-card.json — unauthenticated by design, because the card is how a conformant A2A client discovers the surface.
Hydrated results
Over REST,recall and query return fully hydrated nodes in rank order — the complete cell content, not just identifiers. This differs from the MCP tools, where recall and query return only {node_id, distance} and the host fetches detail separately. If you want full nodes from a single call, REST (or gRPC) is the surface to use.
Maintenance operations
consolidate_scene is available over REST as POST /v1/scenes/{id}/consolidate (and over gRPC), but it is not an MCP tool — it is a maintenance operation rather than an agent-facing memory operation.
Error envelope
Errors return a consistent JSON envelope:code is a stable machine-readable string you can branch on; the message is descriptive text for logs and humans. Status codes map as follows:
On a
429, honor the Retry-After header before retrying. The SDKs already retry transport-level failures with backoff; for raw HTTP clients, respect Retry-After to avoid compounding load.Related pages
- gRPC overview — the primary, lower-overhead surface.
- MCP tools — the agent-facing tool surface (note the
recall/queryshape difference above). - Python SDK — a typed client that wraps these conventions for you.
- Authorization — credentials, roles, and scopes.
Source
This page restates the protocol layer’s REST surface and conventions; it defines no new behavior.- protocol-layer spec §5.6, §7.4 — the REST routes, the error-to-HTTP mapping, and authentication.