- Retrieve a personalization condition template
Retrieves a condition template by ID including its parameters for creating a personalization variant on a page.
The unique identifier of the condition template. To get this ID, you can use the List personalization condition templates endpoint to retrieve the list of available condition templates.
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/personalization/condition-templates/{template_id}
- 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/personalization/condition-templates/returning_visitor \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'x-sc-job-id: job-1234'Successful response
The URL of the condition template.
A reference identifier for the user who last modified the condition template.
The timestamp when the condition template was last modified.
The revision number of the condition template.
A user-friendly identifier for the condition template.
The icon representing the condition template.
A key-value map of additional fields for the condition template.
A list of template elements for the condition template.
Whether the condition template is the default.
Whether the condition template is custom.
The client key for the condition template, or null if not applicable.
A description of the condition template, or null if not provided.
A comment about the revision of the condition template, or null if not provided.
{ "href": "https://www.example.com/condition-template", "ref": "ConditionTemplate-12345", "name": "Time on Site", "modifiedByRef": "User-67890", "modifiedAt": "2025-01-15T10:30:00Z", "revision": 3, "archived": false, "friendlyId": "time_on_site", "type": "time-based", "status": "active", "icon": "https://www.example.com/icons/time-on-site.png", "additionalFields": {}, "templateElements": [ {} ], "defaultTemplate": false, "tags": [ "string" ], "customTemplate": true, "clientKey": "pers123jgltUp", "description": "This condition is based on the time a user spends on the site.", "revisionComment": "Updated time thresholds for better accuracy.", "render": true }