Skip to navigation

Read a page’s element tree from the REST API

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

GET /v6/pages/{pageIdOrPathname}?include=elements
  • Opt-in — omit include and elements is null. include 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.

include=elements is in beta and may change. Requests that pass it return 403 until the feature is enabled for your site or workspace. To opt in, contact support: support@makeswift.com.

For details, see the include parameter on Get Page.