get_pages
Read pages, their revisions, or their publish status. Omit pageId to list website pages (including pages with no public route): default fields pageId, path, routed, liveUrl with truncated true; liveUrl is the absolute public URL for the primary locale, an empty path is the homepage, a dynamic path is filled from one sample entry, an unrouted page has routed false and no liveUrl; full=true adds pathsByLocale, objectTypeId, slugParamName, and displayLabel. Pass pageId to load one page: the response includes liveUrl, default mode=summary lists saved keys only after compact (truncated true), mode=full returns the stored tree, blockId with mode=full returns that block's tree, mode=detailed adds requests, mappings, and parse errors, mode=mapping returns ComponentBlock inputMappings, mode=translation-gaps returns per-locale overlay gaps. versions=N lists the page's revisions (newest first); revisionId returns one stored revision; publishStatus { path, revisionId } reports whether that revision is the one served for the path. A summary is not a write body. See design/shared-concepts/data-requests. Pass includeStyle=true to attach resolved theme tokens (colours, fonts, radius, section padding, container width, breakpoints); style is omitted by default. Block props still take token paths such as colors.text.primary.
get_pages · Group: design
Inputs
websiteId
required
pageId
optional
fields
optional
full
optional
versions
optional — List this many stored revisions instead.
revisionId
optional — Return one stored revision instead.
publishStatus
optional — { path, revisionId }: report whether that revision is served for the path.
contentLocale
optional
mode
optional — summary (default) | full | detailed | mapping | translation-gaps. summary returns ids and saved keys. full returns the stored tree.
blockId
optional
blockType
optional — Summary filter: block type.
under
optional — Summary filter: this block and its descendants.
depth
optional — Summary filter: max depth under the root, or under under.
propsKeys
optional — Summary: false returns id and type only.
includeDefaults
optional — true or annotate. Applies to mode=full.
previewEntryId
optional — Run the page's list and get requests against this entry and return preview.query timings.
previewToken
optional — From a prior dryRun; pass on a follow-up write when re-auth is needed (do not scrape from previewUrl)
routeParams
optional
includeStyle
optional
Schema
{
"name": "get_pages",
"group": "design",
"inputFields": [
{
"name": "websiteId",
"required": true
},
{
"name": "pageId",
"required": false
},
{
"name": "fields",
"required": false
},
{
"name": "full",
"required": false
},
{
"name": "versions",
"required": false,
"description": "List this many stored revisions instead."
},
{
"name": "revisionId",
"required": false,
"description": "Return one stored revision instead."
},
{
"name": "publishStatus",
"required": false,
"description": "{ path, revisionId }: report whether that revision is served for the path."
},
{
"name": "contentLocale",
"required": false
},
{
"name": "mode",
"required": false,
"description": "summary (default) | full | detailed | mapping | translation-gaps. summary returns ids and saved keys. full returns the stored tree."
},
{
"name": "blockId",
"required": false
},
{
"name": "blockType",
"required": false,
"description": "Summary filter: block type."
},
{
"name": "under",
"required": false,
"description": "Summary filter: this block and its descendants."
},
{
"name": "depth",
"required": false,
"description": "Summary filter: max depth under the root, or under `under`."
},
{
"name": "propsKeys",
"required": false,
"description": "Summary: false returns id and type only."
},
{
"name": "includeDefaults",
"required": false,
"description": "true or annotate. Applies to mode=full."
},
{
"name": "previewEntryId",
"required": false,
"description": "Run the page's list and get requests against this entry and return preview.query timings."
},
{
"name": "previewToken",
"required": false,
"description": "From a prior dryRun; pass on a follow-up write when re-auth is needed (do not scrape from previewUrl)"
},
{
"name": "routeParams",
"required": false
},
{
"name": "includeStyle",
"required": false
}
]
}Maps to
GET /api/v1/{locale}/{websiteId}/pages→ APIGET /api/v1/{locale}/{websiteId}/pages/{pageId}→ APIPOST /api/v1/{locale}/{websiteId}/design/revisions→ APIGET /api/v1/{locale}/{websiteId}/design/publish-status→ API