Request
Body
Provide either
If both are provided, the system will look for a contact with either a matching
email or userId to identify the contact you want to update.If both are provided, the system will look for a contact with either a matching
email or userId value. If a contact is found for one of the
values (e.g. email), the other value (e.g. userId) will be updated. If a
contact is not found, a new contact will be created using both email and
userId values.The contact’s email address. If there is no contact with this email, one will
be created.
Required if
Required if
userId is not provided.A unique user ID (for example, from an external application). Read
more
Required if
email is not provided.The contact’s first name.
The contact’s last name.
You can use groups to segment users when sending emails. Currently, a contact
can only be in one user group. Read more
Manage mailing list subscriptions.
Include key-value pairs of mailing list IDs and a
Include key-value pairs of mailing list IDs and a
boolean denoting if the contact should be added (true) or removed (false) from the list. Read
moreCustom properties
You can also include custom contact properties in your request body. These should be added as top-level attributes in the request. Custom properties can be of typestring, number, boolean or date (see allowed date formats).
There are a few reserved names that you
cannot use for custom properties.
Response
Success
The ID of the contact.
Error
Errors will be400 Bad Request.
An error message describing the problem with the request.

