Talk to Sales: +91 9555-396-396

For Support: +91 80-1055-1055

Chat ON Desk API Documentation

HTTP Status Codes


Chat ON Desk uses standard HTTP status codes to communicate errors:

Status CodeDescription
200OK – Everything went as planned.
202Accepted – Request accepted.
400Bad Request – Something was malformed.
401Unauthorized – Credentials missing/invalid.
402Payment Required – Plan/usage exceeded.
403Forbidden – Valid credentials but no access.
404Not Found – Object doesn’t exist.
409Conflict – Resource update conflict.
429Too Many Requests – Rate limit exceeded.
5xxServer Errors – Something went wrong.
Send Message (Template)

POST: https://app.chatondesk.com/api/structuredpush.json
ParameterDescription
apikeyAPI Key generated from your SMS account (required)
structureidUnique id generated for your structured template (required)
channelChannel, e.g., whatsapp (required)
typeMessage type, e.g., template (required)
phoneDestination mobile number (with or without country code). Multiple numbers allowed, comma separated. (required)
dataTemplate variables in JSON format (optional)
Send Message (Custom Message)

POST: https://app.chatondesk.com/api/structuredpush.json

ParameterDescription
apikeyAPI Key generated from your SMS account
phoneMobile number(s) to send SMS (with or without country code, multiple numbers comma separated)
channelChatondesk channel (e.g., whatsapp)
typemessage
messageCustom SMS content
Create Profile

POST: https://app.chatondesk.com/chatbot/api/createprofile.json

ParameterDescription
apikeyAPI Key generated from your SMS account
datas

JSON object containing profile details:

{
  "name": "test user",
  "email": "[email protected]",
  "phone": "8010551055",
  "bot_id": "70d19fce-bd56-11e7-97b0-eca86b71XXXX",
  "Chatuserchennelid": ["whatsapp","smsalert"]
}
Chat History

GET: https://app.chatondesk.com/chatbot/api/chathistory.json

ParameterDescription
apikeyAPI Key generated from your SMS account
profile_idProfile Id
pagePage number (default = 1)
limitNumber of records per page (default = 10)
orderSorting order (asc / desc)
Get Templates List

GET: https://app.chatondesk.com/chatbot/api/templatelist.json

ParameterDescription
apikeyAPI Key generated from your SMS account
limitNumber of templates to retrieve (e.g., 10)
searchnameSearch filter for template name (e.g., test)
Get Channels List

GET: https://app.chatondesk.com/chatbot/api/channellist.json

ParameterDescription
apikeyAPI Key generated from your SMS account
Generate OTP

POST: https://app.chatondesk.com/chatbot/api/mverify.json

ParameterDescription
apikeyAPI Key generated from your SMS account
structureidUnique ID generated for your structured template
channelChatondesk channel (e.g., whatsapp)
typetemplate (message type)
phoneMobile number(s) to send OTP (with/without country code, multiple comma separated)
Validate OTP

POST: https://app.chatondesk.com/chatbot/api/mverify.json

ParameterDescription
apikeyAPI Key generated from your SMS account
channelChatondesk channel (e.g., whatsapp)
phoneMobile number(s) (with/without country code, multiple comma separated)
codeOTP entered by the user
Get Reminder

GET: https://app.chatondesk.com/chatbot/api/reminderlist.json

ParameterDescription
apikeyAPI Key generated from your SMS account
channelChatondesk channel (e.g., whatsapp)
phoneMobile number(s) (with/without country code, multiple comma separated)
codeOTP entered by the user
Create Reminder

POST: https://app.chatondesk.com/chatbot/api/createreminder.json

ParameterDescription
apikeyAPI Key generated from your SMS account (required)
profile_idProfile Id (required)
messageReminder content (required)
timeDate & time for schedule (Format: YYYY-MM-DD HH:MM:SS)
sent_toOptional: user (specified user), self (current user)
statusOptional: active, completed, canceled
typeOptional: one-time or recurring
frequencyFor recurring reminders: daily, weekly, monthly, yearly
valueRepetition value (e.g., 1,2,3)
endtimeEnd date & time for recurring schedule (YYYY-MM-DD HH:MM:SS)
Update Reminder

POST: https://app.chatondesk.com/chatbot/api/updatereminder.json

ParameterDescription
apikeyAPI Key generated from your SMS account (required)
idReminder Id (required)
messageOptional reminder content
timeOptional: Updated date & time (YYYY-MM-DD HH:MM:SS)
sent_toOptional: user (specified user), self (current user)
statusOptional: active, completed, canceled
typeOptional: one-time or recurring
frequencyOptional: daily, weekly, monthly, yearly
valueOptional: repetition value (e.g., 1,2,3)
endtimeOptional: end date & time (YYYY-MM-DD HH:MM:SS)