GET /api/sites/:slug/openapi.json
Returns an OpenAPI 3.0.3 specification generated from the site’s manifest. The spec includes a path for every discovered view (as a GET operation) and every action and workflow (as POST operations), with full input schemas and response shapes.
This endpoint is the primary integration point for AI agents — point your agent at this URL and it can discover and invoke all available operations without any manual wiring.
Path parameters
The site identifier. For example,
example-com for https://example.com. Use GET /api/sites to list all available slugs.Swagger UI
An interactive Swagger UI for the same spec is available at:Example
Using the spec with an AI agent
Most tool-using LLM frameworks can consume an OpenAPI spec directly. Point your agent at the spec URL and it will be able to call discovered operations by name:operationId, summary, input schema, and response schema give the LLM enough context to choose and invoke the right operation without additional prompting.
The
servers array in the spec points to http://{host}:{port}, reflecting the --host and --port values the server was started with. If you run BrowserWire on a non-default address, the spec’s server URL updates automatically.Error responses
| Status | Body |
|---|---|
404 | { "ok": false, "error": "No manifest found for site 'example-com'" } |