← Contacts

Create Contact

Create a new contact in a sub-account. At minimum you should provide an email or phone number.

POST/contacts/
Scope
contacts.write
Auth Method
Bearer Token
Token Type
Sub-Account / Company

Header Parameters

ParameterTypeDescription
AuthorizationrequiredstringBearer {access_token}
VersionrequiredstringAPI Version
Possible values: 2021-07-28
Content-Typerequiredstringapplication/json

Body Parameters

ParameterTypeDescription
firstNamestringFirst name of the contact.
lastNamestringLast name of the contact.
namestringFull name of the contact (alternative to firstName + lastName).
emailstringEmail address. Either email or phone is recommended.
locationIdrequiredstringThe sub-account ID where the contact will be created.
phonestringPhone number in E.164 format (e.g. +15551234567).
address1stringStreet address line 1.
citystringCity name.
statestringState or province.
postalCodestringZIP or postal code.
countrystringCountry code (ISO 3166-1 alpha-2). See the country list for accepted values.
websitestringWebsite URL.
timezonestringIANA timezone string (e.g. America/Chicago).
dndbooleanGlobal Do Not Disturb flag.
dndSettingsobjectPer-channel DND settings. Keys: Call, Email, SMS, WhatsApp, GMB, FB.
tagsstring[]Array of tag names to assign to the contact.
customFieldsobject[]Array of custom field objects: { "id": "field_id", "value": "field_value" }.
sourcestringLead source identifier.
companyNamestringCompany or business name.
dateOfBirthstringBirth date. Supported formats: YYYY/MM/DD, MM/DD/YYYY, YYYY-MM-DD, MM-DD-YYYY, YYYY.MM.DD, MM.DD.YYYY.
assignedTostringUser ID to assign the contact to.
Example RequestcURL
curl -X POST \
  'https://services.leadconnectorhq.com/contacts/' \
  -H 'Authorization: Bearer {access_token}' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
    "firstName": "Jane",
    "lastName": "Smith",
    "email": "[email protected]",
    "phone": "+15551234567",
    "locationId": "ve9EPM428h8vShlRW1KT",
    "tags": ["new-lead", "website"],
    "source": "api",
    "companyName": "Smith Co",
    "address1": "456 Oak Ave",
    "city": "Austin",
    "state": "TX",
    "postalCode": "78702",
    "country": "US",
    "timezone": "America/Chicago"
  }'

Response — 201 Created

Example ResponseJSON
{
  "contact": {
    "id": "ocQHyuzHvuMOe5N5jjXF",
    "firstName": "Jane",
    "lastName": "Smith",
    "name": "Jane Smith",
    "email": "[email protected]",
    "phone": "+15551234567",
    "locationId": "ve9EPM428h8vShlRW1KT",
    "tags": ["new-lead", "website"],
    "source": "api",
    "companyName": "Smith Co",
    "address1": "456 Oak Ave",
    "city": "Austin",
    "state": "TX",
    "postalCode": "78702",
    "country": "US",
    "timezone": "America/Chicago",
    "dateAdded": "2024-06-15T10:00:00.000Z",
    "dateUpdated": "2024-06-15T10:00:00.000Z"
  }
}