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, so you can read the settings, change what you need, and send them straight back.

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

Usage

curl https://sitepaste.com/api/v1/public/site \
  -H "Authorization: Bearer $TOKEN"

Authorizations

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Query parameters

ParameterTypeRequiredDescription
siteIdstringNoTarget site ID (short ID or UUID). Defaults to your default site.

Response

{
  "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, plus:

FieldTypeDescription
idstringSite ID.
businessIdstringYour workspace 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.
lastBuildAtstringRFC 3339. Only after the first deploy.
createdAtstringRFC 3339.
updatedAtstringRFC 3339.