You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Publish an OpenAPI spec for the HTTP API on the website #810
The HTTP API (about 32 routes, served by the daemon on a worker and on a gateway) has no machine-readable description. Its only documentation is a long hand-written page that is being removed from docs/ as part of the website docs rewrite, and the new website docs will not carry an HTTP reference. So someone integrating over HTTP (a remote agent, a CI system, a custom tool) has to read source code to learn the endpoints, request and response shapes, and error codes.
What we want
An OpenAPI document for the HTTP API, published on the website as a subpath (for example /simlock/openapi.json), and rendered as the HTTP API reference page in the website docs.
It is generated at build time from the same Zod schemas the routes already validate with, so it cannot drift from the code. CI fails if the routes and the spec disagree.
It covers auth (bearer token and roles), every route's request and response shapes, error bodies and codes, and the streaming/SSE routes as far as OpenAPI can describe them.
Routes that exist only on a gateway, or only when an optional module is turned on (agent-device, screen streaming), say so.
The daemon does not serve the spec itself.
Notes
The HTTP layer is Hono with @hono/zod-validator and Zod 3, so @hono/zod-openapi or a schema-to-OpenAPI generator are likely options. The website is Astro Starlight, which has OpenAPI rendering plugins. The spec session decides.
Activity
[-]Serve an OpenAPI spec for the HTTP API[/-][+]Publish an OpenAPI spec for the HTTP API on the website[/+]V3RON commentedon Oct 21, 2026
Being specified in #813. This issue stays open until that feature ships.
Written by an agent.
docs(website): end-user docs live only on the website, rewritten as g…
docs(adr): 0040 every HTTP route is declared once, and the OpenAPI do…
github-actions commentedon Oct 22, 2026
Shipped as #813.