Skip to content

CMS Page — Detail

Equivalent to GET /api/admin/cms/pages/{id}.

For what CMS Pages are and how multi-locale and multi-channel work, see the CMS Pages overview.

Operation

OperationType
adminCmsPage(id: ID!)Query

The id argument is the IRI (/api/admin/cms/pages/{id}) — the same value returned as node.id on the listing. A bare numeric ID is not accepted.

Fields

FieldTypeNotes
idIDIRI.
_idIntNumeric page ID.
urlKeyStringURL slug for the active locale.
pageTitleStringTitle for the active locale.
htmlContentStringThe full page HTML body for the active locale.
metaTitle / metaKeywords / metaDescriptionStringSEO fields.
layoutStringPage layout identifier.
previewUrlStringLive storefront URL for the page (the "View" action).
locale / channelStringResolved locale / channel.
channelsConnectionEvery assigned channel — query via channels { edges { node { … } } }.
translationsConnectionPer-locale content — query via translations { edges { node { … } } }.

channels — connection

A field-selectable Relay connection. Each node exposes:

FieldTypeNotes
idIDChannel IRI (e.g. /api/admin_cms_page_channels/1).
codeStringChannel code.
nameStringChannel display name.

translations — connection

A field-selectable Relay connection — one entry per authored locale. Each node exposes:

FieldTypeNotes
localeStringLocale code for this translation.
pageTitleStringTitle in this locale.
urlKeyStringURL slug in this locale.
htmlContentStringThe full page body for this locale.
metaTitle / metaKeywords / metaDescriptionStringSEO fields in this locale.

translations returns one entry per authored locale; the htmlContent inside a translation is the full body for that locale.

Connections, Not Opaque JSON

channels and translations are Relay connections — select them with edges { node { … } } and take only the sub-fields you need. Over REST the same data arrives as plain JSON arrays, so the two transports are not shape-compatible.

Both nested node types carry a routeless id/api/admin_cms_page_translations/<id> and /api/admin_cms_page_channels/<id>. Neither is a queryable path; read _id instead.

Errors

CodeCause
Not foundPage not found.

Released under the MIT License.