# Pages

> List published pages and fetch one with its HTML.

Pages are standalone content such as *About* or *Pricing*. They have no tags and don't appear in post lists.

## List pages

```endpoint
GET /sites/{siteId}/pages
```

Returns every published page.

```bash
curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/pages
```

```json title="Response"
{
  "pages": [
    {
      "id": "clx123...",
      "title": "About",
      "slug": "about",
      "updatedAt": "2026-10-01T10:00:00.000Z"
    }
  ]
}
```

## Get a page

```endpoint
GET /sites/{siteId}/pages/{idOrSlug}
```

Returns one published page with its full HTML, by id or slug.

```bash
curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/pages/about
```

```json title="Response"
{
  "page": {
    "id": "clx123...",
    "title": "About",
    "slug": "about",
    "html": "<p>We are a small team...</p>",
    "featureImage": "https://...",
    "updatedAt": "2026-10-01T10:00:00.000Z"
  }
}
```

A missing or unpublished page returns `404` with `{ "page": null }`.

To preview a draft page, use the [preview endpoint](/docs/api/posts#preview-a-post). It serves pages too.
