Read a site
Read one site’s full settings. This is the document PATCH /sites/{siteId} writes back to.
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:
GET https://sitepaste.com/api/v1/public/sites/default
Which site default points at is reported by GET /workspace and changed by PATCH /workspace.
Usage
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. |
Response
{
"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, plus:
| Field | Type | Description |
|---|---|---|
| id | string | Site ID. |
| protectionType | string | The saved 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 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.