Read a section

Read one section: the pages it holds, and the display metadata set for it.

GET https://sitepaste.com/api/v1/public/sites/{siteId}/sections/{sectionPath}

Requires the content scope.

The path names the section exactly as the PATCH does: the content type, then the section under it, nesting one level for docs and blog and two for standalone. A path deeper than that is a 400 naming the problem.

Usage

curl "https://sitepaste.com/api/v1/public/sites/default/sections/docs/setup" \
  -H "Authorization: Bearer $TOKEN"

Authorizations

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

Response

200 OK with the same record the collection lists and PATCH answers with.

{
  "contentType": "docs",
  "slug": "setup",
  "title": "Getting set up",
  "description": "Install and configure",
  "position": null,
  "pageCount": 4
}

A section that holds no pages and has no metadata is a 404, and setting its metadata with PATCH makes it readable. position is null here because docs/setup sits inside a nav group, and only the nav groups carry a position: docs, blog, and root standalone sections.