Skip to main content
POST
Create a contact

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<email>
required

Email address of the contact

Maximum string length: 254
Example:

"subscriber@example.com"

Marketing consent to record. A contact who previously unsubscribed stays unsubscribed even when subscribed is sent.

Available options:
subscribed,
unsubscribed
Example:

"subscribed"

first_name
string

First name, up to 100 characters and 256 bytes (UTF-8)

Required string length: 1 - 100
Example:

"Jane"

last_name
string

Last name, up to 100 characters and 256 bytes (UTF-8)

Required string length: 1 - 100
Example:

"Doe"

tag_ids
string[]

IDs of tags to add, created with the contact tags endpoint. Adds to the tags the contact already has and never removes one. An unknown tag, or a tag an import or integration manages, gives 400. A contact holds at most 500 tags.

Required array length: 1 - 10 elements
Required string length: 1 - 128
Example:

Response

The contact already existed and was updated

id
string<uuid>
required

The ID of the contact

Example:

"01234567-89ab-cdef-0123-456789abcdef"

created
boolean
required

True when the contact did not exist before this request

Example:

true

Consent status stored after this request

Available options:
never_consented,
subscribed,
unsubscribed
Example:

"subscribed"