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

HeaderTypeRequiredDescription
AuthorizationstringYesBearer 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:

FieldTypeDescription
idstringSite ID.
protectionTypestringThe saved protection setting: public, password, or workspace.
protectionTypeLivestringThe protection the deployed site is currently serving. Differs from protectionType until the next deploy.
pagesPasswordProtectedbooleanWhether password protection is active with a password set. The password itself is never returned.
activeCustomDomainstringOnly when a custom domain is connected.
createdAtstringRFC 3339.
updatedAtstringRFC 3339.

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