List Conditionals
GET /api/v1/workspaces/{workspace_id}/conditionals
Retrieves the conditionals.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Workspace ID
Query Parameters
Section titled “Query Parameters ”Number of records per page
Page number
Responses
Section titled “ Responses ”Successful
object
object
Example
12345Example
Over age 30sobject
The closing syntax tag for the conditional block.
Example
{% endif %}Key-value pairs where the key is the branch key and the value is the opening syntax for that branch.
object
Example
{ "gold_membership": "{% if membership == 'gold' %}", "silver_membership": "{% elsif membership == 'silver' %}"}object
Example
gold_membershipExample
Gold MembershipExample
2023-08-23T10:30:00.000ZExample
2023-08-23T10:30:00.000ZExample
12345object
A per-DynamicContentProfile syntax entry on a Conditional. Either a manually-authored {closing, branch_values} pair or a picker-authored {uses_ui_picker, ui_picker_state} pair — the two modes are mutually exclusive.
object
Manual mode only. The closing syntax tag for the conditional block.
Example
{% endif %}Manual mode only. Key-value pairs where the key is the branch key and the value is the opening syntax for that branch.
object
Example
{ "gold_membership": "{% if membership == 'gold' %}", "silver_membership": "{% elsif membership == 'silver' %}"}When true, the syntax for this dynamic content profile was authored via the UI picker for the profile’s template engine preset. When false or absent, it was defined manually.
Authored picker state when uses_ui_picker is true. Null or absent otherwise. The template engine preset renders this into {closing, branch_values} on read.
object
When true, the final branch of the parent Conditional is rendered as an else branch and its key is omitted from branches below.
Picker state keyed by branch key. Includes one entry per non-else branch; when include_else_branch is true the final branch key is omitted.
object
Picker-authored state for a single non-else branch of a conditional.
object
How multiple conditions combine (e.g. “and”, “or”). Always present for a stable shape; only semantically meaningful when conditions has more than one entry. Must be one of the joiners allowed by the preset — see template_engine_preset_schema.joiners.
Example
andConditions that must all (or any, depending on joiner) hold for this branch to match. At least one entry required.
A single condition within a picker branch. Validated server-side against the profile’s template engine preset capabilities.
object
The reference the template engine reads when evaluating this condition (e.g. “profile.tier”).
Example
profile.tierDeclared value type. Drives the allowed operators and the shape of value.
Example
stringOne of the operators the preset allows for the declared type. See template_engine_preset_schema.operators_by_type[type] on the associated DynamicContentProfile.
Example
equalsThe value being compared against. Always a string on the wire; the preset renderer decides how to format it based on type (quoted for “string”, raw for “number”/“boolean”). Required when the operator’s definition has requires_value=true; null (or absent) when requires_value=false.
Example
goldExample
{ "gold": { "joiner": "and", "conditions": [ { "field": "profile.tier", "type": "string", "operator": "equals", "value": "gold" } ] }}object
Example
10Example
1Example
100