Page

Get render sources for a page

Changed on

Returns references only (path + identifier, no file content, no container code) mapping a rendered page to its source files. The page is identified by a URI path segment, exactly like GET /api/v1/page/render/{uri}.

The URI must be a plain path (e.g. index, about/team). To address a specific site, use the host_id query parameter.

Includes the page reference, theme VTL files, all containers referenced by the template (only content types actually placed under the applied persona/variant are included), and widget contentlets placed on the page.

Widget source field: Each widget entry includes a source field:

  • FILE — the widget's Velocity lives in a file asset; path and identifier are populated. Retrieve the VTL content via GET /api/v2/assets.
  • CODE — the widget's Velocity is inline (in the content type's widgetCode field and/or the contentlet's own fields). No path/identifier are returned. Retrieve the content type definition via GET /api/v1/contenttype/id/{contentTypeVar} and the placed contentlet via GET /api/v1/content/id/{contentletId}.

Other source lookups:

  • Theme folder files: GET /api/v1/folder/sitename/{site}/uri/{uri}
  • DB container code: GET /api/v1/containers/working?containerId=<id>&includeContentType=true
  • FILE container VTL content: GET /api/v2/assets
get/api/v1/page/_render-sources/{uri}

Request

Path parameters

uristring required

Page URI path (e.g. 'index' or 'about/team'). Must be a plain path without an embedded host; use host_id to target a specific site.

Query parameters

host_idstring

Explicit host identifier; if omitted the default site is used

language_idstring

Language identifier; defaults to the default language

persona_idstring

Persona contentlet identifier for personalization lookup

variantNamestring

Variant name; defaults to DEFAULT

modestring

Page mode: EDIT_MODE, PREVIEW_MODE, LIVE; defaults to PREVIEW_MODE

Response

Render sources retrieved successfully

i18nMessagesMapobject
permissionsstring[]

Changes