Read a page

Read one page’s full record: the stored Markdown source, description, tags, theme overrides, and params. To change the page, send the record back with your edits through PATCH at this same URI, or through the batch when you are changing several pages at once.

Drafts and password-protected pages are returned too.

GET https://sitepaste.com/api/v1/public/sites/{siteId}/pages/{contentType}/{section}/{slug}

Requires the content scope.

Usage

curl "https://sitepaste.com/api/v1/public/sites/default/pages/blog/my-first-post" \
  -H "Authorization: Bearer $TOKEN"

Authorizations

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

Path parameters

ParameterTypeRequiredDescription
contentTypestringYesblog, docs, standalone, or homepage.
sectionstringIf the page has oneThe page’s section path. Nests one level for docs and blog, two for standalone; omitted for a sectionless page.
slugstringYes, except the homepageThe page’s URL slug. The homepage has neither section nor slug: it is addressed as pages/homepage.

The three segments together are the page’s identity. See Addressing a page.

Addressing a page

A page’s address is its content type, then its section if it has one, then its slug. The address takes no query parameters.

PageURI
A blog post hello/sites/{siteId}/pages/blog/hello
A docs page install in section setup/sites/{siteId}/pages/docs/setup/install
A standalone page about/sites/{siteId}/pages/standalone/about
A standalone page in a nested section/sites/{siteId}/pages/standalone/api/media/get-media
The site’s homepage/sites/{siteId}/pages/homepage

The section is matched exactly: pages/docs/install names the docs page with no section, and the one inside setup is a 404 until you name the section too. The homepage has no section and no slug in its address, because a site has only one.

Response

Everything the list returns, plus content, theme overrides, and params. The list’s hasPassword is spelled passwordProtected here:

{
  "id": "k3m9x2q7r4pz",
  "slug": "my-first-post",
  "title": "My first post",
  "content": "# My first post\n\nThe stored Markdown source, verbatim.",
  "contentType": "blog",
  "description": "A short description",
  "draft": false,
  "passwordProtected": false,
  "showListings": false,
  "tags": ["first-post"],
  "publishedAt": "2026-08-01T12:00:00Z",
  "createdAt": "2026-08-01T12:00:00Z",
  "updatedAt": "2026-08-20T09:30:00Z"
}

Theme override fields (theme, primaryColor, showToc, …) appear only when the page overrides the site default.

updatedAt advances only when a write actually changes one of the page’s own fields. A PATCH that stores the values the page already holds leaves it, and the read’s ETag, unchanged. Changing only a page’s tags moves its ETag without moving updatedAt.

Errors

CodeMeaning
400The path does not name a page: an unknown content type, an invalid section, or a missing slug
404No page with that slug, content type, and section on the site, or the siteId does not belong to your workspace