The Upsert API will adhere to the configuration defined under the "Allow Duplicate Contact" setting at the Location level. If the setting is configured to check both Email and Phone, the API will attempt to identify an existing contact based on the priority sequence specified in the setting, and will create or update the contact accordingly.
If two separate contacts already exist—one with the same email and another with the same phone—and an upsert request includes both the email and phone, the API will update the contact that matches the first field in the configured sequence, and ignore the second field to prevent duplication.
Idempotency-Key is not supported. Upsert matches an existing contact by email or phone as described above, so for requests that include an email or phone it is safer to retry than Create Contact. This does not apply when createNewIfDuplicateAllowed is set at a location that allows duplicates.
Authorizations
Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
Global Do Not Disturb switch for all channels; true blocks every channel irrespective of current dndSettings, and it does not add or change any dndSettings entry
Example:true
inboundDndSettingsobject
Do Not Disturb for inbound communication from the contact, independent of dnd and dndSettings; only the all key is accepted, with status active or inactive, and any other key is rejected with 422
Example
{"all":{"status":"active","message":"Do not contact me"}}
inboundDndSettings.allobject
Inbound DND settings applied to all channels
Example
{"status":"active","message":"Do not contact me"}
inboundDndSettings.all.statusstringrequired
Inbound DND status for this channel
Available optionsactiveinactive
Example:active
inboundDndSettings.all.messagestring
Custom message associated with the inbound DND setting
Example:Please do not contact me via this channel
tagsstring[]
This field will overwrite all current tags associated with the contact. To update a tags, it is recommended to use the Add Tag or Remove Tag API instead.
Example:["nisi sint commodo amet","consequat"]
customFieldsobject[]
List of custom field values to assign to the contact
The birth date of the contact. Supported formats: YYYY/MM/DD, MM/DD/YYYY, YYYY-MM-DD, MM-DD-YYYY, YYYY.MM.DD, MM.DD.YYYY, YYYY_MM_DD, MM_DD_YYYY
Example:1990-09-25
countrystring
Country code of the contact (ISO 3166-1 alpha-2)
Example:US
companyNamestringnullable
Company name of the contact
Example:DGS VolMAX
assignedTostring
User's Id
Example:y0BeYjuRIlDwsDcOHOJo
createNewIfDuplicateAllowedboolean
Controls whether to create a new contact or update an existing duplicate. Scenario 1: If this value is true and the location allows duplicate contacts, a new contact will be created immediately without checking for duplicates. Scenario 2: If this value is true but the location does not allow duplicate contacts, this field is ignored and the normal upsert behavior applies: the API will search for an existing duplicate contact, update it if found, or create a new contact if not found. Scenario 3: If this value is false or not provided, the normal upsert behavior applies regardless of the location's duplicate contact setting.
Default:false
Example:false
dndSettingsobject
Per-channel DND settings, independent of the global dnd switch; channel keys are call, email, sms, whatsApp, gmb and fb on Version v3 and later, and Email-style keys are rejected with 422
Example
{"call":{"status":"active","message":"Do not call"},"email":{"status":"inactive"}}
dndSettings.callobject
DND settings for phone calls
Example
{"status":"active","message":"Do not call","code":"all"}
dndSettings.call.statusstringrequired
Do Not Disturb status for this channel
Available optionsactiveinactivepermanent
Example:active
dndSettings.call.messagestring
Custom message associated with the DND setting
Example:Do not contact via this channel
dndSettings.call.codestring
DND code or reason
Example:OPTED_OUT
dndSettings.emailobject
DND settings for email
Example
{"status":"active","message":"Do not email","code":"all"}
dndSettings.email.statusstringrequired
Do Not Disturb status for this channel
Available optionsactiveinactivepermanent
Example:active
dndSettings.email.messagestring
Custom message associated with the DND setting
Example:Do not contact via this channel
dndSettings.email.codestring
DND code or reason
Example:OPTED_OUT
dndSettings.smsobject
DND settings for SMS
Example
{"status":"active","message":"Do not SMS","code":"all"}
dndSettings.sms.statusstringrequired
Do Not Disturb status for this channel
Available optionsactiveinactivepermanent
Example:active
dndSettings.sms.messagestring
Custom message associated with the DND setting
Example:Do not contact via this channel
dndSettings.sms.codestring
DND code or reason
Example:OPTED_OUT
dndSettings.whatsAppobject
DND settings for WhatsApp
Example
{"status":"active","message":"Do not WhatsApp","code":"all"}
dndSettings.whatsApp.statusstringrequired
Do Not Disturb status for this channel
Available optionsactiveinactivepermanent
Example:active
dndSettings.whatsApp.messagestring
Custom message associated with the DND setting
Example:Do not contact via this channel
dndSettings.whatsApp.codestring
DND code or reason
Example:OPTED_OUT
dndSettings.gmbobject
DND settings for Google My Business
Example
{"status":"active","message":"Do not contact via GMB","code":"all"}
dndSettings.gmb.statusstringrequired
Do Not Disturb status for this channel
Available optionsactiveinactivepermanent
Example:active
dndSettings.gmb.messagestring
Custom message associated with the DND setting
Example:Do not contact via this channel
dndSettings.gmb.codestring
DND code or reason
Example:OPTED_OUT
dndSettings.fbobject
DND settings for Facebook
Example
{"status":"active","message":"Do not contact via FB","code":"all"}
dndSettings.fb.statusstringrequired
Do Not Disturb status for this channel
Available optionsactiveinactivepermanent
Example:active
dndSettings.fb.messagestring
Custom message associated with the DND setting
Example:Do not contact via this channel
dndSettings.fb.codestring
DND code or reason
Example:OPTED_OUT
Response
application/json
Successful response. Upsert returns 201 for both outcomes: when it creates a new contact and when it matches or updates an existing one. Use the new field to tell them apart: true means a contact was created, false means an existing contact was used.
newboolean
Whether a new contact was created (true) or an existing one was updated (false)
Global Do Not Disturb switch for all channels; omitted when never set (treat as false), and when true every channel is blocked irrespective of current dndSettings
Example:true
contact.typestring
Contact type classification
Example:lead
contact.sourcestring
Source from which the contact was created
Example:public api
contact.assignedTostring
User Id the contact is assigned to
Example:ve9EPM428h8vShlRW1KT
contact.address1string
Street address of the contact
Example:3535 1st St N
contact.citystring
City of the contact
Example:Birmingham
contact.statestring
State of the contact
Example:AL
contact.countrystring
Country of the contact
Example:US
contact.postalCodestring
Postal code of the contact
Example:35061
contact.websitestring
Website URL of the contact
Example:https://www.tesla.com
contact.tagsstring[]
List of tags associated with the contact
Example:["nisi sint commodo amet","consequat"]
contact.dateOfBirthstring
Date of birth of the contact (YYYY-MM-DD)
Example:1990-09-25
contact.dateAddedstring
Date and time the contact was added (ISO 8601)
Example:2021-07-02T05:18:26.704Z
contact.dateUpdatedstring
Date and time the contact was last updated (ISO 8601)
Example:2021-07-02T05:18:26.704Z
contact.attachmentsstring[]deprecated
Deprecated: leftover field, not populated. Contact files are stored as documents on the contact, not here, so this is empty or absent (older records may still carry stale values). It is not part of the documented contact webhook payloads, but stale values on older records can still appear there. Do not rely on this field.
Example:[]
contact.ssnstring
Social Security Number (if applicable)
Example:123-45-6789
contact.keywordstring
Search keyword associated with the contact
Example:test
contact.firstNameLowerCasestring
Lowercase version of the contact first name
Example:rubika
contact.fullNameLowerCasestring
Lowercase version of the contact full name
Example:rubika deo
contact.lastNameLowerCasestring
Lowercase version of the contact last name
Example:deo
contact.lastActivitystring
Date and time of last activity on this contact (ISO 8601)
Example:2021-07-16T11:39:30.564Z
contact.customFieldsobject[]
List of custom field values for the contact
contact.customFields[].idstring
Unique identifier of the custom field
Example:MgobCB14YMVKuE4Ka8p1
contact.customFields[].valuestring
Value of the custom field
Example:name
contact.businessIdstring
Business Id the contact is associated with
Example:641c094001436dbc2081e642
contact.attributionSourceobject
First-touch attribution source details for the contact
Additional phone numbers associated with the contact
contact.additionalPhones[].phonestringrequired
Additional Phones
Example:7017345098
contact.additionalPhones[].phoneLabelstring
Label
Available optionsHomeWorkMobileLandline
Example:Mobile
contact.visitorIdstring
visitorId is the Unique ID assigned to each Live chat visitor.
Example:ve9EPM428h8vShlRW1KT
contact.phoneLabelstring
Label for the primary phone number
Available optionsHomeWorkMobileLandline
Example:Mobile
contact.inboundDndSettingsobject
Do Not Disturb for inbound communication from the contact, independent of dnd and dndSettings; omitted when never set (treat as inactive), and when all is active inbound calls and SMS from the contact are blocked
Metadata captured when the contact was imported from an external source
contact.skipEmailVerificationboolean
Whether email verification was skipped for this contact
Example:false
contact.dndSettingsobject
Per-channel DND settings; the object or a channel is omitted when never set (treat as inactive), and a channel is blocked when its status is active or permanent, or when dnd is true