Attributes are the custom fields your contacts carry, such as plan or orders, discovered from the values you send. These operations list the keys and their values for rule builders and merge tags; you set attributes on the contact itself, through identify or updateContact.
Endpoints
| Endpoint | Request |
|---|---|
| List contact attribute keys | GET /v1/attributes |
| List the values of an attribute | GET /v1/attributes/{key}/values |
| Describe an attribute key | PUT /v1/attributes/{key} |
The Attribute object
{
"key": "key_example",
"type": "string",
"contactCount": 0,
"masked": true,
"description": "description_example"
}keystringrequiredThe attribute key, as written on contacts.
typestringrequiredInferred from the values held.
list: every value is an array (["running", "yoga"], a form's checkboxes);mixed: more than one type.one of
string,number,boolean,date,list,mixedcontactCountintegerrequiredContacts that have this key.
min 0
maskedbooleanrequiredMasked in workspace settings: members see the key, not its values.
descriptionstring | nullrequiredWhat the key means, as an admin described it; null when none.