For the complete documentation index, see llms.txt. This page is also available as Markdown.

Contact (Deprecated)

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

Deprecated

Create a contact

post
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: False

  • Partner Allowed: True

  • Error Codes : Error Message

  • 4030001 : FORBIDDEN

  • 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
200

Successfully registered contact

application/json
idstringOptional
crm_idstringOptional
opt_in_datestring · date-timeOptional

epoch in seconds

create_datestring · date-timeOptional

epoch in seconds

first_namestringOptional
last_namestringOptional
is_expiredbooleanOptional
post/v2/org/{orgId}/contact
Deprecated

Assign a contact to a user

post
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: False

  • Partner Allowed: True

  • API will assign a contact to a user or a group from which the user can be selected. Only one of them is required, if both are provided, user_id will be used

  • assign_on_handover is a boolean flag to indicate if the user should be assigned to the chatroom after the lead has responded

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
contactIdstringRequired
Body
user_idstringOptional
group_idstringOptional
remote_waba_idstringOptional
remote_phone_idstringOptional
assign_on_handoverbooleanOptional
Responses
202

User will be assigned to the room

No content

post/v3/orgs/{orgId}/contacts/{contactId}/assign

No content

Deprecated

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
200

Successfully updated contact

application/json
idstringOptional
crm_idstringOptional
opt_in_datestring · date-timeOptional

epoch in seconds

create_datestring · date-timeOptional

epoch in seconds

first_namestringOptional
last_namestringOptional
is_expiredbooleanOptional
put/v1/orgs/{orgId}/contact/{contactId}
Deprecated

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
200

Successfully updated contact disposition

application/json
stringOptional
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
200

Successfully responding with list of all contacts for a pn

application/json
idstringOptional
crm_idstringOptional
opt_in_datestring · date-timeOptional

epoch in seconds

create_datestring · date-timeOptional

epoch in seconds

first_namestringOptional
last_namestringOptional
is_expiredbooleanOptional
expiry_tsstring · date-timeOptional
get/v2/org/{orgId}/contact/pn/{phoneNumber}

Last updated