# listWebsiteCmsContent

A page of goliathdata.com's CMS content of one kind, newest edit first, with each document's path and CMS edit link; null for any other organization. Edited in the CMS, not here. Org admins.

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

## Variables

- `collection`: `WebsiteCmsCollection!` (required, one of `ARTICLES`, `GUIDES`, `ENCYCLOPEDIA`, `PAGES`). The kinds of content goliathdata.com's CMS holds.
- `status`: `WebsiteCmsDocumentStatus` (one of `PUBLISHED`, `DRAFT`). A document's state in Goliath's CMS: its latest save, so a live one with unpublished edits is a DRAFT.
- `page`: `Int`

## Response (data, an example)

```json
{
  "websiteArticlesQuery": {
    "cmsContent": {
      "documents": [
        {
          "id": "…",
          "title": "…",
          "path": "…",
          "date": "2026-01-01T00:00:00.000Z",
          "updatedAt": "2026-01-01T00:00:00.000Z",
          "published": true,
          "author": "…",
          "editUrl": "…"
        }
      ],
      "total": 0,
      "page": 0,
      "pages": 0,
      "createUrl": "…"
    }
  }
}
```

## Example

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