# getWebsiteArticlePreview

The preview build of an article change (`headSha` from saveWebsiteArticle or deleteWebsiteArticle): BUILDING, READY with its URL, or FAILED with the build page. Org admins only.

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

## Variables

- `websiteId`: `String!` (required)
- `headSha`: `String!` (required)

## Response (data, an example)

```json
{
  "websiteArticlesQuery": {
    "preview": {
      "state": "BUILDING",
      "previewUrl": "…",
      "detailsUrl": "…"
    }
  }
}
```

## Example

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