Skip to main content
The bw run command starts a local HTTP server that serves your discovered APIs. All endpoints documented in this section are served by this local server.

Base URL

The port is configurable via bw run --port <number>.

Request format

POST endpoints expect a JSON request body with the Content-Type header:
GET endpoints accept inputs as query parameters.

Response format

All endpoints return JSON. Successful responses include an ok: true field. Error responses include an error message. Success:
Error:
HTTP status codes: 200 for success, 404 for unknown slugs/states/operations, 429 for max concurrent reached, 500 for execution errors.

CORS

All endpoints include permissive CORS headers:

Endpoints

The :slug parameter identifies a site. It’s derived from the domain — for example, example.com becomes example-com. Use GET /api/sites to see all available slugs.