Contact
This page provides API documentation for creating a contact in Saleschat.pro, including the required parameters and sample responses for successful contact creation.
Roles Allowed: ADMIN
Impersonated User Allowed: False
Partner Allowed: True
Error Codes : Error Message
4030001 : FORBIDDEN
4090001 : UQ_CONSTRAINT_FAILED
epoch in seconds
^(?!.*\*).*$^(?!.*\*).*$Successfully registered contact
Unauthorized - Authentication is required
User or Partner is not allowed to create a contact
Conflicting entry in DB
Invalid format or bad input
Internal Exception
POST /v2/org/{orgId}/contact HTTP/1.1
Host: apis.saleschat.pro
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 192
{
"crm_id": "text",
"phone_number": "+919999999999",
"opt_in_date": "2025-12-06T03:12:31.740Z",
"first_name": "text",
"last_name": "text",
"governance_level_id": "text",
"is_inbound": true,
"source": "BTRIX"
}{
"id": "text",
"crm_id": "text",
"opt_in_date": "2025-12-06T03:12:31.740Z",
"create_date": "2025-12-06T03:12:31.740Z",
"first_name": "text",
"last_name": "text",
"governance_level": {
"id": "text",
"name": "text"
}
}Roles Allowed: ADMIN
Impersonated User Allowed: FALSE
Partner Allowed: TRUE
Update contact crmID, first name, last name and chatroom name will be automatically updated
^(?!.*\*).*$^(?!.*\*).*$Successfully updated contact
Bad request
Unauthorized - Authentication is required
User does not belong to org
Contact not found
Required fields are missing or invalid values are provided
Failed to update contact due to internal error
PUT /v1/orgs/{orgId}/contact/{contactId} HTTP/1.1
Host: apis.saleschat.pro
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"crm_id": "text",
"first_name": "text",
"last_name": "text"
}{
"id": "text",
"crm_id": "text",
"opt_in_date": "2025-12-06T03:12:31.740Z",
"create_date": "2025-12-06T03:12:31.740Z",
"first_name": "text",
"last_name": "text",
"governance_level": {
"id": "text",
"name": "text"
}
}Roles Allowed: ADMIN
Impersonated User Allowed: True
Partner Allowed: TRUE
Successfully updated contact disposition
Bad request
Unauthorized - Authentication is required
User does not belong to org
Contact not found
Required fields are missing or invalid values are provided
Failed to add contact disposition due to internal error
PUT /v2/orgs/{orgId}/contact/{contactId}/disposition HTTP/1.1
Host: apis.saleschat.pro
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"stage": "text",
"disposition": "text"
}textRoles 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.
e164 format
+919999999999Successfully responding with list of all contacts for a pn
Unauthorized - Authentication is required
Forbidden - You don't have permission to access this resource
Phone Number not in the correct format or required fields are missing or invalid values are provided
Internal Server Error - Something went wrong on the server
GET /v2/org/{orgId}/contact/pn/{phoneNumber} HTTP/1.1
Host: apis.saleschat.pro
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "text",
"crm_id": "text",
"opt_in_date": "2025-12-06T03:12:31.740Z",
"create_date": "2025-12-06T03:12:31.740Z",
"first_name": "text",
"last_name": "text",
"is_expired": true,
"expiry_ts": "2025-12-06T03:12:31.740Z"
}
]Last updated