Skip to main content
POST

Authorizations

Authorization
string
header
required

Your Mailercloud API key (plain text, no Bearer prefix). Create keys in Settings → API.

Headers

Content-Type
string
required

Request body type

Body

application/json
city
string
country
string
custom_fields
object
department
string
email
string
industry
string
job_title
string
last_name
string
lead_source
string
list_id
string
middle_name
string
first_name
string
company_name
string
phone
string
salary
integer
state
string
postal_code
string
contact_type
string
tags
string[]

Open-tracking consent for this contact.

Accepted values are case-insensitive and whitespace-trimmed:

  • granted: granted, yes, true, 1, subscribed
  • denied: denied, revoked, no, false, 0, unsubscribed
  • unknown: unknown, never subscribed

The subscribed / unsubscribed / never subscribed aliases let Klaviyo exports be imported unchanged.

An unrecognised or empty value is ignored and leaves any existing consent untouched - it is not a validation error, so a blank field in a re-upload never erases a previously recorded answer.

Setting a value also stamps tracking_consent_date and sets tracking_consent_source to 5 (API). Those two fields cannot be set directly.

Maximum: 20

Maximum string length: 20

Response

OK

contact_id
string
status
string