
# Read a section

Read one section: the pages it holds, and the display metadata set for it.

```sh
GET https://sitepaste.com/api/v1/public/sites/{siteId}/sections/{sectionPath}
```

Requires the `content` scope.

The path names the section exactly as [the PATCH](/api/sections/patch-sections-contenttype#addressing-a-section) does: the content type, then the section under it, nesting one level for `docs` and `blog` and two for `standalone`. A path deeper than that is a 400 naming the problem.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/sites/default/sections/docs/setup" \
  -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). |

## Response

200 OK with the same record [the collection](/api/sections/get-sections) lists and [PATCH](/api/sections/patch-sections-contenttype) answers with.

```json
{
  "contentType": "docs",
  "slug": "setup",
  "title": "Getting set up",
  "description": "Install and configure",
  "position": null,
  "pageCount": 4
}
```

A section that holds no pages and has no metadata is a 404, and setting its metadata with [PATCH](/api/sections/patch-sections-contenttype) makes it readable. `position` is `null` here because `docs/setup` sits inside a nav group, and only the nav groups carry a position: `docs`, `blog`, and root standalone sections.