Easymailing
Condition fields

Get a condition field

GET /audiences/{audienceUuid}/condition_fields/{uuid}

GET/audiences/{audienceUuid}/condition_fields/{uuid}

Returns one condition field: its name, type, category, the operators allowed for it, the kind of input it expects and, for fixed lists, its valid options.

When to use: To check which operators and values are valid for a field before using it in a segment or a bulk group action.

When not to use: For contact segments, search_contacts, count_contacts, the filter of a campaign and the filters of workflows (create_workflow, update_workflow), use list_contact_filter_fields: condition fields only serve old audience segments, bulk group actions by conditions and the condition steps of classic automations. To see all the fields at once, use list_audience_condition_fields.

Permissions: Requires the manager role or higher, or the marketing.audiences.read capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

audienceUuid*string

UUID of the audience whose fields you want. Get it from list_audiences.

uuid*string

UUID of the condition field. Get it from list_audience_condition_fields.

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "string",  "name": "string",  "type": "string",  "category": "string",  "operators": [    "string"  ],  "input_type": "string",  "multiple": true,  "options": [    "string"  ]}