Starts a message session by sending its first message as the path user, and answers 202 without the stored message. It takes the body of POST /domains/{domain}/users/{user}/messages, which returns the message and its messagesession-id. Any scope can use its own user, an Office Manager any user in its domain, a Reseller those in its territory, and a Super User any user.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Body Params application/jsonRequired
Examples
Responses
🟢202Accepted
application/json
The message is accepted and delivered shortly after this response. The same sender and recipients continue an existing session. A read made right away can still show the old values.
Bodyapplication/json
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🟠409Conflict
🟠415Unsupported Media Type
🔴500Internal Server Error
🟠420Rate Limit Exceeded
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl--location'https://awqacore01.crexendocloud.com/ns-api/v2/domains//users//messagesessions' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data'{
"type": "chat",
"message": "Can you cover the front desk at 3?",
"destination": "1002"
}'