Easymailing
Condition fields

List condition fields

GET /audiences/{audienceUuid}/condition_fields

GET/audiences/{audienceUuid}/condition_fields

Lists every member property you can filter on in this audience: subscriber data, custom fields, location, consent, campaign and survey activity, groups and purchases. Each field says its type, its allowed operators and, for fixed lists, its options. All the fields come in one response.

When to use: Before creating or editing an old audience segment, a bulk group action by conditions or a condition step of a classic automation: you need the field's IRI (@id) and one of its operators to write a valid condition.

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 read the values stored for a person, use get_audience_member. To list the extra fields you can store on members, use list_audience_custom_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.

Query Parameters

page?integer

Ignored: all the fields come in a single response.

Default1
itemsPerPage?integer

Ignored: all the fields come in a single response.

Range0 <= value <= 50
Default30

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?page=1&itemsPerPage=30" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "uuid": "string",    "name": "string",    "type": "string",    "category": "string",    "operators": [      "string"    ],    "input_type": "string",    "multiple": true,    "options": [      "string"    ]  }]