Read a page’s element tree from the REST API

The Get Page endpoint now accepts expand=elements, returning the page’s full element tree alongside the page record.

GET /v6/pages/{pageIdOrPathname}?expand=elements
  • Opt-in — omit expand and the response is unchanged. elements is included only when you request it, and expand accepts only elements (any other value returns a 400).
  • Respects existing resolution — the returned tree honors the same locale and versionRef parameters as the endpoint. ?locale= returns the localized tree; ?versionRef=ref:live returns the published tree (default is ref:draft).
  • Tree shape — each node has a type, a key (a UUID unique within the tree), and props. Nested elements live inside props, at any depth.

For details, see the expand parameter on Get Page.