- 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 template definition content. For AUDIENCE type templates, this is a structured AudienceDefinition object serialised as JSON; for all other types it is a plain string, such as JavaScript source.
The client key associated with the template.
The unique identifier of the entity in UUID format.
The description of the template.
The reference ID of the user who last modified the template.
The email of the user who last modified the template.
The date and time with an offset from UTC.
The comment associated with the current revision of the template.
The date and time with an offset from UTC.
The reference ID of the user who created the template.
The email of the user who created the template.
The unique human-readable identifier for this template. Lowercase letters, digits, and underscores only.
The type of the template, which determines how the template definition is processed.
The additional key-value metadata fields associated with this template.
The configurable element slots within this template.
The compiled or transpiled form of the definition, populated after processing.
Whether this template is the default template.
Whether this template is a custom template.
{ "definition": "{\"operator\":\"AND\",\"groups\":[{\"operator\":\"AND\",\"conditions\":[{\"source\":\"CDP\",\"field\":\"email\",\"operator\":\"NOT_NULL\",\"value\":null}]}]}", "clientKey": "stringstringstringstringstringst", "href": "string", "ref": "d0fad5d6-e996-4437-8fb9-5f40bbcfd7cc", "name": "string", "description": "string", "modifiedByRef": "string", "modifiedByEmail": "string", "modifiedAt": "2022-03-10T12:15:50-04:00", "revision": 0, "revisionComment": "string", "archived": true, "createdAt": "2022-03-10T12:15:50-04:00", "createdByRef": "string", "createdByEmail": "string", "friendlyId": "my_condition_template", "type": "WEB", "status": "DRAFT", "icon": "audience", "revisions": { "href": "/v3/flowDefinitions/my_experience/revisions" }, "additionalFields": { "property1": "string", "property2": "string" }, "templateElements": [ { … } ], "transpiledDefinition": "string", "render": true, "defaultTemplate": true, "tags": [ "string" ], "customTemplate": true, "valueType": "STRING" }