Skip to content

Publish an OpenAPI spec for the HTTP API on the website #810

Closed

Description

@V3RON

Problem

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

  1. added
    request:new
    on Oct 21, 2026
  2. changed the title [-]Serve an OpenAPI spec for the HTTP API[/-] [+]Publish an OpenAPI spec for the HTTP API on the website[/+] on Oct 21, 2026
  3. V3RON commented on Oct 21, 2026

    @V3RON
    ContributorAuthor

    Being specified in #813. This issue stays open until that feature ships.

    Written by an agent.

  4. github-actions commented on Oct 22, 2026

    @github-actions
    Contributor

    Shipped as #813.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    request:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions