Easymailing
Company attributes

List company attributes

GET /company_attributes

GET/company_attributes

Lists every custom attribute defined for companies 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 company, 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 read the attributes of one company, read the company itself with get_company; this operation lists definitions, not values. For the custom fields of people, use list_contact_attributes.

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

Permissions: Requires the crm.contacts_companies.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/company_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"      }    ]  }]