Scopes
Define a field, then set its value
A custom field is only the definition. The values live on each person, undercustom_attributes.
- Define the field with Create custom field, for example
Lead Sourceof typeTEXT. Note thekeyit returns, herelead_source. - Set its value with
custom_attributeson Create person or Update person:{ "custom_attributes": { "lead_source": "Webinar" } }. - Read it back from
custom_attributeson Get person and Search people.
null clears a value. Key and type errors come back as CUSTOM_ATTRIBUTE_KEY_UNKNOWN and CUSTOM_ATTRIBUTE_VALUE_INVALID. People responses always include custom_attributes, with archived fields and empty values left out. Search cannot filter or sort on custom fields.
Field types
Keys
Each field has akey, derived from its label: lowercase, accents removed, runs of non-alphanumeric characters replaced by _, truncated to 64 characters. Lead Source becomes lead_source.
Limits
A team can hold up to 150TEXT, 50 NUMBER, 30 DATE and 30 BOOLEAN custom fields. DROPDOWN fields count toward the TEXT limit. Creating a field beyond the limit for its type returns ATTRIBUTE_SLOTS_EXHAUSTED.
Editing and deleting fields
Update custom field changes the label, the description and the options of a dropdown. Thekey and the type never change. Fields synced from a CRM integration cannot be edited or deleted, and built-in fields such as name or company are not custom fields.
Deleting a person field is not the same as deleting a company attribute. Delete custom field removes the field from the API but keeps the values stored on people, and creating a field with the same label and type restores it with them. Delete company attribute clears the values on every company and cannot be undone.
404 TEAM_NOT_FOUND.
Endpoints
List custom fields
List the custom fields of your people
Create custom field
Create a custom field
Update custom field
Edit a custom field
Delete custom field
Delete a custom field