

# Get site settings

Read a site's settings: everything the dashboard's site settings pages show, in one document. Field names match [update site settings](/api/site/patch-site), so you can read the settings, change what you need, and send them straight back.

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

## Usage

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

## Query parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| siteId | string | No | Target site ID (short ID or UUID). Defaults to your default site. |

## Response

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

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

| Field | Type | Description |
|-------|------|-------------|
| id | string | Site ID. |
| businessId | string | Your workspace ID. |
| protectionType | string | The saved [protection](/concepts/password-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. |
| lastBuildAt | string | RFC 3339. Only after the first deploy. |
| createdAt | string | RFC 3339. |
| updatedAt | string | RFC 3339. |
