Easymailing
Custom fields

List custom fields

GET /audiences/{audienceUuid}/list_fields

GET/audiences/{audienceUuid}/list_fields

Lists the custom fields of an audience: the extra data stored on each member (company, birthday, interests), with type, options and the template_tag used to personalize emails. Predefined fields are included.

When to use: Before sending member data that includes custom fields (you need each field's IRI), or to see what information an audience collects.

When not to use: To read the values of one member, use get_audience_member. For the fields you can filter segments on, use list_audience_condition_fields; for email placeholders, list_audience_merge_tags.

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 the custom field belongs to. Get it from list_audiences.

Query Parameters

page?integer

Page number, starting at 1.

Default1
itemsPerPage?integer

Items per page. Default 30, maximum 50.

Range0 <= value <= 50
Default30

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields?page=1&itemsPerPage=30" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "tag": "string",    "template_tag": "string",    "public": true,    "required": true,    "type": "list.field.type.text",    "translations": [      {        "label": "string",        "default_value": "string",        "help_text": "string",        "locale": "string"      }    ],    "options": {      "property1": "string",      "property2": "string"    },    "list_field_options": [      {        "value": "string",        "translations": [          {            "name": "string",            "locale": "string"          }        ]      }    ],    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]