> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browserwire.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List Sites

> Retrieve all manifests cached by the local execution server.

## `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

<CodeGroup>
  ```bash Request theme={null}
  curl http://127.0.0.1:8787/api/sites
  ```

  ```json Response theme={null}
  [
    {
      "id": "mf_abc123",
      "domain": "example.com",
      "origin": "https://example.com",
      "slug": "example-com",
      "stateCount": 4,
      "viewCount": 3,
      "actionCount": 7
    },
    {
      "id": "mf_def456",
      "domain": "app.acme.io",
      "origin": "https://app.acme.io",
      "slug": "app-acme-io",
      "stateCount": 12,
      "viewCount": 8,
      "actionCount": 21
    }
  ]
  ```
</CodeGroup>

## 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              |

<Note>
  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.
</Note>
