- TODO LIST
- Version
- Authentication
- Access Token (Oauth - Username/Password)
- API Key (Machine 2 Machine)
- JWT (JSON Web Token)
- Event Subscriptions
- Resellers
- Domains
- Phone Numbers
- Users
- Devices
- Phones/Macs
- Sites
- Call Center
- Answer Rules
- Call Blocking
- Auto Attendant
- Media
- Voicemail
- Greetings
- Read Greetings for User
- Read Specific Greeting for User
- Delete Specific Greeting for User
- Create a new Greeting from TTS
- Update Greeting with TTS script
- Create a new Greeting from Upload (JSON + Base64 File)
- Update Greeting from Upload (JSON + Base64 File)
- Create a new Greeting from Upload (Multipart/Mixed Post)
- Update Greeting from Upload (Multipart/Mixed Post)
- Music on Hold
- Domain
- Read MOH for Domain
- Create a new MOH for Domain from TTS
- Update MOH for Domain from TTS
- Create a new MOH for Domain from Upload (JSON + Base64 File)
- Update MOH for Domain from Upload (JSON + Base64 File)
- Create a new MOH for Domain from Upload (Multipart/Mixed Post)
- Update MOH for Domain from Upload (Multipart/Mixed Post)
- Delete MOH for Domain
- User
- Read MOH for User
- Create a new MOH for Domain from TTS
- Create a new MOH for User from Upload (JSON + Base64 File)
- Update MOH for User from Upload (JSON + Base64 File)
- Update MOH for Domain from TTS
- Create a new MOH for User from Upload (Multipart/Mixed Post)
- Update a MOH for User from Upload (Multipart/Mixed Post)
- Delete MOH for User
- Domain
- Hold Messages
- Text to Speech
- CDR (Call History)
- Transcriptions & Sentiment
- Call Traces & Cradle to Grave
- Calls (live/active calls)
- Contacts
- Addresses
- Get Addresses for Domain
- Validate Address
- Create Address for Domain
- Update Address for Domain
- Update Address for User
- Update Address Endpoint
- Create Address for User
- Delete Address For User
- Delete Address Endpoint
- Delete Address For Domain
- Create Address Endpoint
- Get Address Endpoints for a Domain
- Get Addresses Count for Domain
- Get Addresses for User
- Get Address Using Address ID
- Voicemail Reminders
- Dialrule
- Messages
- Get Messagesessions for DomainGET
- Start a new Message SessionPOST
- Get Messagesessions for UserGET
- Get Messages for MessagesessionGET
- Send a message (Chat)POST
- Send a message (Group Chat)POST
- Send a message (Media Chat)POST
- Send a message (SMS)POST
- Send a message (Group SMS)POST
- Send a message (MMS)POST
- Update Messagesession (Participants)PUT
- Update Messagesession (Session Name)PUT
- Update Messagesession (Leave)PUT
- Delete MessagesessionDELETE
- SMS Numbers
- Recordings
- Email
- Connections
- Routes
- Meetings
- Event Logs
- Iotum
- Read Iotum Video Domain Resellers
- Read Iotum Video Host
- Read All Iotum Video Hosts in a Domain
- Read Iotum Video Host Conferences
- Read Iotum Video Host Contacts
- Read Iotum Video Company
- Read Iotum Video Company Products
- Read Iotum Video Available Products
- Create a Host
- Create Host Contacts
- Create Iotum Video Subscription
- Update Domain's Iotum Company
- Update Domain's Iotum Subscriptions
- Update User's Iotum Host
- Delete Iotum Video Subscription
- Delete a Host
- Create Iotum Video Company
- Create a Ad-hoc Conference
- Delete a Video Company
- Create a Meeting with Id
- Create a Meeting
- Read Meeting
- Count Domains Meetings
- Count Meeting
- Register Meeting
- Update a Meeting
- Delete a Meeting
- Request a Meeting ID
- Read Meetings for User
- Backup & Restore
- Configs
- Images
- Templates
- Timeframes
- Domain (Shared)
- User
- Holiday Information
- Firebase
- SSL Certificates
Send a message (Chat)
POST
/domains/{domain}/users/{user}/messagesessions/{messagesession}/messages
Last modified:2024-07-08 20:45:52
OperationId:sendMessageChat
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
domain
stringÂ
required
user
stringÂ
required
messagesession
stringÂ
required
Body Params application/json
type
stringÂ
required
Examples:
chatsmsmmschat-mediachat-videochat-participant-(status-changes)
message
stringÂ
required
destination
required
Any of
Examples:
112318585551234
from-number
stringÂ
optional
data
string  | nullÂ
optional
mime-type
optional
Any of
Examples:
image/pngimage/jpegimage/giftext/html
size
integer  | nullÂ
optional
Example
{
"type": "chat",
"message": "Hello there!",
"destination": "0010"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//users//messagesessions//messages' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "chat",
"message": "Hello there!",
"destination": "0010"
}'
Responses
🟢202Accepted
application/json
Body
code
integerÂ
required
message
stringÂ
required
Example
{
"code": 202,
"message": "Accepted"
}
🟠404Record not found
🟠400Bad Request
🟠401Authentication Required
Modified at 2024-07-08 20:45:52