Read a domain

Read one custom domain: its status, the site it points at, and the DNS records it still needs. Domains belong to the workspace, so the route does not name a site.

GET https://sitepaste.com/api/v1/public/domains/{domainId}

Requires the settings scope.

Usage

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

Authorizations

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

Response

The domain record, in the shape list domains returns each entry in, including verification while the domain is still pending_verification.

400 when {domainId} is malformed; 404 when it is well formed but the workspace has no domain with that ID.