Sitecore API catalog/Agent API//
- Get flow definition variant details
List flow definitions for a page
Retrieve a flow definition
Reset component variant
Set up a component variant
Get flow definition varia...
Retrieves the details of a specific A/B/n test or personalization variant, including its datasource and components.
Security
HTTPBearer
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
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
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/flows/{flowId}/variants/{variantId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
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'Successful response
The unique identifier of the A/B/n test or personalization.
Example:"1fdfbc60-9646-469d-b971-2b0f4c033fbc"
The unique identifier of the A/B/n test or personalization variant.
Example:"8ea2cb6f-a92a-4c05-88a3-a4c0b29c63a8"
Response
{ "flowId": "1fdfbc60-9646-469d-b971-2b0f4c033fbc", "variantId": "8ea2cb6f-a92a-4c05-88a3-a4c0b29c63a8", "components": [ { … } ] }