List personalization variants by page

Request

Retrieves all personalization variants defined for a specific page, including IDs, names, creation dates, and associated variants.

Security
HTTPBearer
Path
pageIdstring(Pageid)required

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

Example:3f2504e0-4f89-11d3-9a0c-0305e82c3301
Query
languagestring or null(Language)
Example:language=en
Any of:

The language version of the page.

string
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/v2/personalization/by-page/3f2504e0-4f89-11d3-9a0c-0305e82c3301?language=en' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-sc-job-id: job-1234'

Responses

Successful response

Bodyapplication/json
Array [
page_idstring(Page Id)

The unique identifier of the page.

Example:"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
variant_namestring(Variant Name)

The name of the variant.

Example:"Variant A"
audience_namestring(Audience Name)

The name of the audience targeted by the variant.

Example:"Returning Visitors"
templatestring(Template)

The template used for the variant.

Example:"Default Template"
condition_groupsArray of objects(Condition Groups)

A list of condition groups for the personalization variant.

Default:[]
]
Response
[ { "page_id": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "variant_name": "Variant A", "audience_name": "Returning Visitors", "template": "Default Template", "condition_groups": [] } ]