Contact

This page provides API documentation for creating a contact in Saleschat.pro, including the required parameters and sample responses for successful contact creation.

Create a contact

post
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: False

  • Partner Allowed: True

  • Error Codes : Error Message

    1. 4030001 : FORBIDDEN

    2. 4090001 : UQ_CONSTRAINT_FAILED

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
Body
crm_idstring · max: 128Required
opt_in_datestring · date-timeRequired

epoch in seconds

first_namestring · max: 128OptionalPattern: ^(?!.*\*).*$
last_namestring · max: 128OptionalPattern: ^(?!.*\*).*$
governance_level_idstring · max: 128Optional
is_inboundbooleanOptional
sourcestring · enumOptionalPossible values:
Responses
chevron-right
200

Successfully registered contact

application/json
post
/v2/org/{orgId}/contact

Update a contact

put
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: FALSE

  • Partner Allowed: TRUE

  • Update contact crmID, first name, last name and chatroom name will be automatically updated

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
contactIdstringRequired
Body
crm_idstring · max: 128Required
first_namestring · max: 128OptionalPattern: ^(?!.*\*).*$
last_namestring · max: 128OptionalPattern: ^(?!.*\*).*$
Responses
chevron-right
200

Successfully updated contact

application/json
put
/v1/orgs/{orgId}/contact/{contactId}

Update disposition & stage for a contact

put
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: True

  • Partner Allowed: TRUE

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
contactIdstringRequired
Body
stagestringRequired
dispositionstringOptional
Responses
chevron-right
200

Successfully updated contact disposition

application/json
Responsestring
put
/v2/orgs/{orgId}/contact/{contactId}/disposition

Get Contact by Phone Number

get
  • Roles Allowed: MEMBER

  • Impersonated User Allowed: True

  • Partner Allowed: True

  • PhoneNumber should be in E164 format

  • The result will contain all contacts for a given pn.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
phoneNumberstringRequired

e164 format

Example: +919999999999
Responses
chevron-right
200

Successfully responding with list of all contacts for a pn

application/json
get
/v2/org/{orgId}/contact/pn/{phoneNumber}

Last updated