Contacts
Upsert Contact
Creates a new contact or updates an existing contact if the email already exists.
POST
This is the recommended endpoint for most contact synchronization scenarios.
Authorizations
Bearer authentication header of the form Bearer
<token>, where <token> is your auth token.Body
Contact information to create or updateValid email address (automatically normalized to lowercase)Example:
"[email protected]"Contact’s first nameExample:
"John"Contact’s last nameExample:
"Doe"An optional reference field to store your application’s user ID. Use this to map your internal users to AutoSend contacts.Example:
"user_12345"IDs of the contact lists to add this contact to. You can find list IDs in your AutoSend Dashboard.Do not pass segment IDs here. Segments are computed automatically based on contact field values. Adding a contact to a list will also trigger any live automations associated with that list.Example:
["507f1f77bcf86cd799439011"]Key-value pairs for custom contact attributes. There are four supported value types:
string, number, boolean, and date. Learn more about custom fields.Example:Response
Contact created or updated successfullyIndicates if the request was successfulExample:
true