For the complete documentation index, see llms.txt. This page is also available as Markdown.

Contact Fields

Define custom contact fields

Manage contact fields

Get all Contact Fields

get

Get all Contact Fields existing in your account

Authorizations
Api-TokenstringRequired

Pass the API token in the Api-Token

Responses
200

OK.

application/json
idintegerOptional
namestring · max: 80Optional
data_typestring · enumOptionalPossible values:
merge_tagstring · max: 80Optional

Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient.

get/api/contacts/fields

Create Contact Field

post

Create new Contact Fields. Please note, you can have up to 40 fields.

Authorizations
Api-TokenstringRequired

Pass the API token in the Api-Token

Body
namestring · max: 80Optional
data_typestring · enumOptionalPossible values:
merge_tagstring · max: 80Optional

Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient.

Responses
201

Contact Field Created.

application/json
idintegerOptional
namestring · max: 80Optional
data_typestring · enumOptionalPossible values:
merge_tagstring · max: 80Optional

Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient.

post/api/contacts/fields

Get Contact Field

get

Get a contact Field by ID

Authorizations
Api-TokenstringRequired

Pass the API token in the Api-Token

Path parameters
field_idinteger · int64 · min: 1Required

Unique Contact Field ID

Example: 3229
Responses
200

Returns attributes of the contact field.

application/json
idintegerOptional
namestring · max: 80Optional
data_typestring · enumOptionalPossible values:
merge_tagstring · max: 80Optional

Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient.

get/api/contacts/fields/{field_id}

Delete Contact Field

delete

Delete existing Contact Field Please, note, you cannot delete a Contact Field which is used in Automations, Email Campaigns (started or scheduled), and in conditions of Contact Segments (you'll see the corresponding error)

Authorizations
Api-TokenstringRequired

Pass the API token in the Api-Token

Path parameters
field_idinteger · int64 · min: 1Required

Unique Contact Field ID

Example: 3229
Responses
204

Contact Field successfully deleted

No content

delete/api/contacts/fields/{field_id}

No content

Update Contact Field

patch

Update existing Contact Field. Please note, you cannot change data_type of the field.

Authorizations
Api-TokenstringRequired

Pass the API token in the Api-Token

Path parameters
field_idinteger · int64 · min: 1Required

Unique Contact Field ID

Example: 3229
Body
namestring · max: 80Optional
merge_tagstring · max: 80Optional

Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient.

Responses
200

OK.

application/json
idintegerOptional
namestring · max: 80Optional
data_typestring · enumOptionalPossible values:
merge_tagstring · max: 80Optional

Personalize your campaigns by adding a merge tag. This field will be replaced with unique contact details for each recipient.

patch/api/contacts/fields/{field_id}

Last updated

Was this helpful?