Skip to main content

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

curl http://127.0.0.1:8787/api/sites

Response fields

The response is a JSON array of manifest summary objects. Each object contains:
FieldTypeDescription
idstringUnique manifest identifier
domainstringWebsite domain (e.g., example.com)
originstringFull origin (e.g., https://example.com)
slugstringURL-safe site identifier used in all other endpoints
stateCountnumberNumber of page states in the manifest
viewCountnumberNumber of data views discovered
actionCountnumberNumber 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.