
# Read a page

Read one page's full record: the stored Markdown source, description, tags, theme overrides, and params. To change the page, send the record back with your edits through [PATCH](/api/pages/patch-pages-path) at this same URI, or through [the batch](/api/pages/post-pages-batch) when you are changing several pages at once.

Drafts and password-protected pages are returned too.

```sh
GET https://sitepaste.com/api/v1/public/sites/{siteId}/pages/{contentType}/{section}/{slug}
```

Requires the `content` scope.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/sites/default/pages/blog/my-first-post" \
  -H "Authorization: Bearer $TOKEN"
```

## Authorizations

| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token (`Authorization: Bearer sp_...`). Created in the dashboard under Account > Tokens. See [authentication](/api/authentication). |

## Path parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| contentType | string | Yes | `blog`, `docs`, `standalone`, or `homepage`. |
| section | string | If the page has one | The page's section path. Nests one level for `docs` and `blog`, two for `standalone`; omitted for a sectionless page. |
| slug | string | Yes, except the homepage | The page's URL slug. The homepage has neither section nor slug: it is addressed as `pages/homepage`. |

The three segments together are the page's identity. See [Addressing a page](#addressing-a-page).

## Addressing a page

A page's address is its content type, then its section if it has one, then its
slug. The address takes no query parameters.

| Page | URI |
|------|-----|
| A blog post `hello` | `/sites/{siteId}/pages/blog/hello` |
| A docs page `install` in section `setup` | `/sites/{siteId}/pages/docs/setup/install` |
| A standalone page `about` | `/sites/{siteId}/pages/standalone/about` |
| A standalone page in a nested section | `/sites/{siteId}/pages/standalone/api/media/get-media` |
| The site's homepage | `/sites/{siteId}/pages/homepage` |

The section is matched exactly: `pages/docs/install` names the docs page with
no section, and the one inside `setup` is a 404 until you name the section too.
The homepage has no section and no slug in its address, because a site has only
one.

## Response

Everything the [list](/api/pages/get-pages) returns, plus `content`, theme overrides, and `params`. The list's `hasPassword` is spelled `passwordProtected` here:

```json
{
  "id": "k3m9x2q7r4pz",
  "slug": "my-first-post",
  "title": "My first post",
  "content": "# My first post\n\nThe stored Markdown source, verbatim.",
  "contentType": "blog",
  "description": "A short description",
  "draft": false,
  "passwordProtected": false,
  "showListings": false,
  "tags": ["first-post"],
  "publishedAt": "2026-08-01T12:00:00Z",
  "createdAt": "2026-08-01T12:00:00Z",
  "updatedAt": "2026-08-20T09:30:00Z"
}
```

Theme override fields (`theme`, `primaryColor`, `showToc`, ...) appear only when the page overrides the site default.

`updatedAt` advances only when a write actually changes one of the page's own fields. A PATCH that stores the values the page already holds leaves it, and the read's `ETag`, unchanged. Changing only a page's tags moves its `ETag` without moving `updatedAt`.

## Errors

| Code | Meaning |
|------|---------|
| 400 | The path does not name a page: an unknown content type, an invalid section, or a missing slug |
| 404 | No page with that slug, content type, and section on the site, or the `siteId` does not belong to your workspace |