Request

Retrieves the components on a page.

Security
HTTPBearer
Path
pageIdstring, (uuid)(Pageid)required

The unique identifier of the page from which to retrieve components. To get this ID, use List pages of a site.

Example:f0b81bcc-7388-46be-b109-6e73d1114470
Query
languagestring or null(Language)
Example:language=en
Any of:

The language code for filtering components.

string
versioninteger or null(Version)
Example:version=1
Any of:

The version number of the page to retrieve components from.

integer
variantIdstring or null(Variantid)
Example:variantId=8bd7a9ec96b8490f9b894e3866fefb79_2a5c1e8c8d244f569a44d6b28cbecb05
Any of:

The unique identifier of the personalization or A/B/n test variant on the page. To get this ID, you can use the List flow definitions endpoint. Use the transpiledVariants[].ref, or variants[].ref when available.

If you provide this value, the endpoint returns components of the specified variant. If you omit this value, the endpoint returns components of the base page.

string
includeRenderingDetailsboolean(Includerenderingdetails)

Whether the response includes rendering details for each component.

Default:true
Headers
x-sc-job-idany(X-Sc-Job-Id)

A unique identifier for the job, used to trace, audit, and revert actions performed by an AI agent through the Agent API.

Example:job-1234
curl -i -X GET \
  'https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/f0b81bcc-7388-46be-b109-6e73d1114470/components?language=en&version=1&variantId=8bd7a9ec96b8490f9b894e3866fefb79_2a5c1e8c8d244f569a44d6b28cbecb05&includeRenderingDetails=true' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-sc-job-id: job-1234'

Responses

Successful response

Bodyapplication/json
pageIdstring, (uuid)(Pageid)

The unique identifier of the page.

Example:"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
pageNamestring(Pagename)

The name of the page.

Example:"Home Page"
pagePathstring(Pagepath)

The path to the page.

Example:"/sitecore/content/Home"
versioninteger(Version)

The version number of the page.

Example:1
languagestring(Language)

The language code of the page.

Example:"en"
routestring or null(Route)
Example:"/home"
Any of:

The route of the page, or null if not applicable.

string
layoutEditingKindstring or null(Layouteditingkind)
Example:"Standard"
Any of:

The layout editing kind of the page, or null if not applicable.

string
templateTemplateModel (object) or null
Example:"Page Template"
Any of:

The template used for the page, or null if not applicable.

componentsArray of objects or null(Components)
Any of:

A list of components on the page, or null if none.

Response
{ "pageId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "pageName": "Home Page", "pagePath": "/sitecore/content/Home", "version": 1, "language": "en", "route": "/home", "layoutEditingKind": "Standard", "template": { "id": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "name": "Article Page" }, "components": [] }