Skip to main content

Create a new contact

POST 

/api/partner-gateway/contacts

Creates a contact in your account and returns it with its generated ID.

  • Minimum content: the body must set at least one field other than gender. Give a phone number (E.164, such as +393331234567) or an email address if the contact must be reachable.
  • Accepted fields: those of the request schema, including customField1, customField2, customField3, tags and consents. Any other property is ignored.
  • Invalid phone numbers and emails do not fail the call: the contact is created (201), the invalid values stay in phoneNumbers and emailAddresses, and errors lists each of them.
  • Main values: mainEmail is the first valid address of emailAddresses, or the first one if none is valid. An invalid number never becomes mobilePhoneNumber, so isValidMobilePhoneNumber is false when no valid mobile number is given.
  • Consents: consents sets one status per channel. The format is on the consents field.
  • Next steps: add the contact to contact lists with POST /contacts/list/contacts to make it a campaign recipient. For bulk imports, use POST /contacts/upload or POST /contacts/upload/vcard.

Consents are shared by the contacts with the same main email (or the same mobile number, for a contact without an email). If your account already has an older one, its consents prevail, even when it has none, and replace the ones sent here shortly after the 201. To change the consents of a person already in your account, update the existing contact with PUT /contacts/{id}.

Request​

Responses​

Contact created. errors lists its invalid phone numbers and email addresses, if any.