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
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 anok: true field. Error responses include an error message.
Success:
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
| Method | Endpoint | Description |
|---|---|---|
GET | /api/health | Health check |
GET | /api/sites | List all cached manifests |
GET | /api/sites/:slug/manifest | Full manifest JSON for a site |
GET | /api/sites/:slug/views/:state/:view | Execute a view (read data) |
POST | /api/sites/:slug/actions/:state/:action | Execute an action (perform interaction) |
: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.