GET /api/sites
Returns all manifests that the server pre-fetched when bw run started. Each entry includes the slug used to address that site in all other endpoints.
No parameters required.
Example
Response fields
The response is a JSON array of manifest summary objects. Each object contains:| Field | Type | Description |
|---|---|---|
id | string | Unique manifest identifier |
domain | string | Website domain (e.g., example.com) |
origin | string | Full origin (e.g., https://example.com) |
slug | string | URL-safe site identifier used in all other endpoints |
stateCount | number | Number of page states in the manifest |
viewCount | number | Number of data views discovered |
actionCount | number | Number of executable actions discovered |
The list reflects manifests fetched at server startup. If you record and train a new site while
bw run is active, restart the server to pick up the new manifest.