Aggregation

The Aggregation API lets you fetch aggregated page data.

Aggregate personalization variants for multiple pages

Request

Returns currently active personalization variants for the requested pages.

Security
Bearer
Body

The collection of pages, by their identifier and language, for which to get personalization variants.

Array [
idstring, non-emptyrequired

The page identifier. Example value: 8f0b81bc-7388-46be-b109-6e73d1114470

Example:"8f0b81bc-7388-46be-b109-6e73d1114470"
languagestring, non-emptyrequired

The language of the page. Example value: en-US

Example:"en-US"
]
curl -i -X POST \
  https://xmapps-api.sitecorecloud.io/api/v1/aggregation/pages/live/variants \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "id": "8f0b81bc-7388-46be-b109-6e73d1114470",
      "language": "en-US"
    }
  ]'

Responses

Success

Bodyapplication/json
pagesArray of objects or null(PageVariantsResponse)

Aggregated data of the currently active variants for this page.

Response
{ "pages": [ { … } ] }