# listWebsiteArticles

One website's articles (`websiteId` from listWebsites), live ones and those its open change adds: slug, title, description, date, author, cover, and what its open change does to each (`pendingChange`; a NEW one cannot be read, edited or removed here until that change is published). `collection` null with a `reason`: the site has no article collection, so none can be added. Org admins only.

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

## Variables

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

## Response (data, an example)

```json
{
  "websiteArticlesQuery": {
    "articles": {
      "collection": {
        "directory": "…",
        "route": "…"
      },
      "reason": "…",
      "articles": [
        {
          "slug": "…",
          "title": "…",
          "description": "…",
          "date": "…",
          "author": "…",
          "cover": "…",
          "pendingChange": "NEW"
        }
      ]
    }
  }
}
```

## Example

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