
# Read a site

Read one site's full settings. This is the document [PATCH /sites/{siteId}](/api/sites/patch-sites-siteid) writes back to.

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

Requires the `settings` scope.

`siteId` also accepts the literal `default`, which resolves to the workspace's default site, so you can read its settings without looking its ID up first:

```sh
GET https://sitepaste.com/api/v1/public/sites/default
```

Which site `default` points at is reported by [GET /workspace](/api/workspace/get-workspace) and changed by [PATCH /workspace](/api/workspace/patch-workspace).

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/sites/s7k2m0dq1p3z" \
  -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

```json
{
  "id": "s7k2m0dq1p3z",
  "name": "docs",
  "displayName": "Docs Site",
  "theme": "minimal",
  "protectionType": "public",
  "protectionTypeLive": "public",
  "pagesPasswordProtected": false,
  "contentWidth": "wide",
  "showToc": true,
  "activeCustomDomain": "docs.example.com",
  "createdAt": "2026-01-01T09:00:00Z",
  "updatedAt": "2026-02-08T12:00:00Z"
}
```

The full document carries every settable field from [update a site](/api/sites/patch-sites-siteid), plus:

| Field | Type | Description |
|-------|------|-------------|
| id | string | Site ID. |
| protectionType | string | The saved [protection](/concepts/protection) setting: `public`, `password`, or `workspace`. |
| protectionTypeLive | string | The protection the deployed site is currently serving. Differs from `protectionType` until the next deploy. |
| pagesPasswordProtected | boolean | Whether password protection is active with a password set. The password itself is never returned. |
| activeCustomDomain | string | Only when a [custom domain](/concepts/custom-domains) is connected. |
| createdAt | string | RFC 3339. |
| updatedAt | string | RFC 3339. |

400 when `{siteId}` is malformed; 404 when it is well formed but names no site in your workspace.