Add a new contact
Add a new contact to the mailing list, or update an existing one if updateIfExists
is set to true
.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The email of the contact.
"john@acme.com"
The user id of the contact.
"1234567"
The avatar url of the contact.
"https://example.com/avatar.jpg"
The full name of the contact.
"John Doe"
The language code of the contact.
"en_US"
If a contact with the provided email already exists, update the contact with the new data.
Whether to ignore subscribedToLists
field if the contact already exists and updateIfExists
is set to true
. Useful to avoid accidentally resubscribing a contact to lists they unsubscribed before. Default value is true
.
The array of mailing lists the contact is subscribed to.
["onboarding", "newsletter"]
The custom properties set for this contact.
{ "company": "Acme", "age": 35 }