Custom 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

Path parameters
account_idinteger · int64 · min: 1Required

Unique account ID

Example: 3229
Responses
200

OK.

application/json
get
/api/accounts/{account_id}/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

Path parameters
account_idinteger · int64 · min: 1Required

Unique account ID

Example: 3229
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
post
/api/accounts/{account_id}/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
account_idinteger · int64 · min: 1Required

Unique account ID

Example: 3229
field_idinteger · int64 · min: 1Required

Unique Contact Field ID

Example: 3229
Responses
200

Returns attributes of the contact field.

application/json
get
/api/accounts/{account_id}/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
account_idinteger · int64 · min: 1Required

Unique account ID

Example: 3229
field_idinteger · int64 · min: 1Required

Unique Contact Field ID

Example: 3229
Responses
delete
/api/accounts/{account_id}/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
account_idinteger · int64 · min: 1Required

Unique account ID

Example: 3229
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
patch
/api/accounts/{account_id}/contacts/fields/{field_id}

Last updated

Was this helpful?