📚 Reference
API reference
Every route, generated from the code as an OpenAPI document.
The API is described by docs/api/openapi.json, generated from the live route registrations in backend/src/app.ts. Nobody edits it by hand.
- Browse it on a running hub: open
/api/docs(a Scalar reference) or fetch/api/openapi.json. - Regenerate it:
cd backend && bun run gen:api-docs. The lander runs the generators on every landing and commits any change asGenerated: ..., so a session never commits this file. - Add a route: register it with
createRoutefrom@hono/zod-openapithroughapiRouter()inbackend/src/lib/openapi.ts, and give every error status a plainerrorResponsesmessage (what went wrong and what to do). A route outside that router does not appear in the document. - Compatibility: API changes are additive. The turn stream's event names (
turn_meta,signal,delta,status,spoken_cue,done,error) stay available to the robot, satellites and Go, with additions only.
Routes under /stack/v1 and /v1 belong to the Stack, not to Home; Home's client for them is backend/src/lib/stack/client.ts.

