Easymailing
Contact attributes

List contact attributes

GET /contact_attributes

GET/contact_attributes

Lists every custom attribute defined for contacts in the account, active and archived, ordered by position: name, type, public code, options and whether it is archived. The list is complete, not paginated, and has no filters.

When to use: Before reading or writing the attributes of a contact, to learn which attributes exist, their public_code (the key to use), their type and, for enum and multi_enum, the options a value can take. Also to check whether an attribute with the same name already exists before creating one.

When not to use: To list the custom fields of an audience (data stored per member), use list_audience_custom_fields. To read the attributes of one contact, read the contact itself with get_contact; this operation lists definitions, not values.

Filters: None. Archived attributes are included: check status on each item.

Permissions: Requires the contacts.read capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/contact_attributes" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "name": "string",    "description": "string",    "public_code": "string",    "type": "text",    "currency": null,    "status": "active",    "position": 0,    "version": 0,    "current_value_count": 0,    "ever_used": true,    "options": [      {        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",        "label": "string",        "color": "string",        "integration_key": "string",        "position": 0,        "status": "active"      }    ]  }]