Skip to main content
Node.js

Authorizations

Authorization
string
header
required

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

Headers

x-phone
string

Please provide the number of the phone you want to call with this API in the header. The number must be in country code + number format without any characters or spaces, e.g. 919876543210; Alternatively, provide the phone_id (phone-xxxxxxxxxxxx) in the header

Example:

"{{orgPhone}}"

Body

application/json
contact_name
string
required
  • Name of the new contact
Example:

"Test New 1040"

contact_id
string
required
  • The unique identifier of the contact Must be formatted as country_code + number (e.g., 919537851844).
  • Do not include special characters
Example:

"919537851844"

labels
string
  • A comma-separated list of labels to be assigned to the chats. All labels are case-insensitive.
  • If any label currently does not exist, it will be created
Example:

"Test, Demo"

is_internal
boolean
default:false
  • Indicates if the member is an internal user of the organization.
Example:

true

Response

200 - application/json

200 OK

The response is a contact object. Refer to the contact object here