Skip to main content
ContactsVersion: v3New

Create Contact

POST/contacts

Create a new contact

Idempotency-Key is not supported. Retrying a request that timed out can create a duplicate contact. Before you retry, check whether the contact exists (for example with Get Duplicate Contact), or use Upsert Contact.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:contacts.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version. Send v3.

Available optionsv3
Example:v3

Body

firstNamestringnullable

First name of the contact

Example:Rosan
lastNamestringnullable

Last name of the contact

Example:Deo
namestringnullable

Full name of the contact

Example:Rosan Deo
emailstringnullable

Email address of the contact

locationIdstringrequired

Location Id the contact should be created under

Example:ve9EPM428h8vShlRW1KT
genderstring

Gender of the contact

Example:male
phonestringnullable

Phone number of the contact

Example:+1 888-888-8888
address1stringnullable

Street address of the contact

Example:3535 1st St N
citystringnullable

City of the contact

Example:Dolomite
statestringnullable

State of the contact

Example:AL
postalCodestring

Postal code of the contact

Example:35061
websitestringnullable

Website URL of the contact

Example:https://www.tesla.com
timezonestringnullable

Timezone of the contact

Example:America/Chihuahua
dndboolean

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"
  }
}
tagsstring[]

List of tags to assign to the contact

Example:["nisi sint commodo amet","consequat"]
customFieldsobject[]

List of custom field values to assign to the contact

Example
[
  {
    "id": "6dvNaf7VhkQ9snc5vnjJ",
    "key": "my_custom_field",
    "fieldValue": "My Text"
  }
]
sourcestring

Source from which the contact was created

Example:public api
dateOfBirthstringnullable

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
additionalEmailsobject[]

⚠️ Always send the primary together with the additionals (email with additionalEmails).

Array of { email }, maximum 10. email stays the contact's primary email. Additional values are extra addresses on the same contact.

If the location has uniqueness check enabled on email and any email you send (primary or additional) already belongs to another contact, the request fails with BadRequest (400) and nothing is saved.

Possible values: <= 10

Example
[
  {
    "email": "[email protected]"
  }
]
additionalPhonesobject[]

⚠️ Always send the primary together with the additionals (phone with additionalPhones).

Array of { phone, phoneLabel? }, maximum 10. phoneLabel is one of Home, Work, Mobile, Landline. phone stays the contact's primary phone. Additional values are extra numbers on the same contact.

If the location has uniqueness check enabled on phone and any phone number you send (primary or additional) already belongs to another contact, the request fails with BadRequest (400) and nothing is saved.

Possible values: <= 10

Example
[
  {
    "phone": "+18832327657",
    "phoneLabel": "Mobile"
  }
]
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"
  }
}

Response

Successful response

contactobject

Contact details