Get flow definition variant details

Request

Retrieves the details of a specific A/B/n test or personalization variant, including its datasource and components.

Security
HTTPBearer
Path
flowIdstring(Flowid)required

The unique identifier of the personalization or A/B/n test to retrieve. To get this ID, you can use the List flow definitions for the page and use the flow ref value.

Example:1fdfbc60-9646-469d-b971-2b0f4c033fbc
variantIdstring(Variantid)required

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

Example:8ea2cb6f-a92a-4c05-88a3-a4c0b29c63a8
Query
languagestring(Language)

The language version of the page for which to retrieve the variant details.

Default:"en"
Example:language=en
versioninteger or null(Version)
Example:version=5
Any of:

The page version for which to retrieve the variant details. If not specified, the latest version will be used.

integer
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/flows/1fdfbc60-9646-469d-b971-2b0f4c033fbc/variants/8ea2cb6f-a92a-4c05-88a3-a4c0b29c63a8?language=en&version=5' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-sc-job-id: job-1234'

Responses

Successful response

Bodyapplication/json
flowIdstring(Flowid)

The unique identifier of the A/B/n test or personalization.

Example:"1fdfbc60-9646-469d-b971-2b0f4c033fbc"
variantIdstring(Variantid)

The unique identifier of the A/B/n test or personalization variant.

Example:"8ea2cb6f-a92a-4c05-88a3-a4c0b29c63a8"
componentsArray of objects(Components)

A list of components associated with the variant.

Response
{ "flowId": "1fdfbc60-9646-469d-b971-2b0f4c033fbc", "variantId": "8ea2cb6f-a92a-4c05-88a3-a4c0b29c63a8", "components": [ { … } ] }