Skip to main content
Custom fields let you store structured data on contacts beyond the standard profile fields — things like subscription plan, customer tier, last purchase date, or any business-specific attribute. This page documents the two custom field endpoints for a contact: retrieving all field values and setting a single field value.

Get All Custom Fields for a Contact

Returns all custom field values currently set on a contact. The response is an array of field objects, each including the field’s ID, name, description, and current value.
GET /api/v1/contacts/{identifier}/custom-fields

Path Parameters

string
required
Contact lookup string (id:<value>, email:<value>, or phone:<value>). Minimum length: 1 character.

Code Examples

Response Fields

array
required
Array of custom field value objects.

Example Response


Set a Single Custom Field Value

Sets the value of a specific custom field on a contact. You identify both the contact and the target field in the URL path. A successful request returns HTTP 200 OK.
POST /api/v1/contacts/{identifier}/custom-fields/{customFieldId}

Path Parameters

string
required
Contact lookup string. Minimum length: 1 character.
string
required
The numeric ID of the custom field to update. Must match the pattern \d+.

Request Body

string
required
The new value to set for this custom field on the contact.

Code Examples

Response

To find the numeric IDs of your custom fields, call GET /api/v1/custom-fields. The id field in each result is what you pass as customFieldId.