# listWebsites

The organization's websites (id, name, domain, live URL) and each one's open change: its preview (state, URL once READY, previewId), the request and the editing agent's note, and whether Goliath is still working on it. Null while websites are off for the organization.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listWebsites", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

None.

## Response (data, an example)

```json
{
  "customerWebsiteQuery": {
    "websites": [
      {
        "id": "…",
        "name": "…",
        "primaryDomain": "…",
        "liveUrl": "…",
        "working": true,
        "openChangeUnreadable": true,
        "openChange": {
          "previewId": "…",
          "preview": "BUILDING",
          "previewUrl": "…",
          "working": true,
          "sentForPublishing": true,
          "request": "…",
          "agentNote": "…"
        }
      }
    ]
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listWebsites",
    "variables": {}
  }'
```
