Send messages
Send one or more messages
Note that on message send responses, there are two possible locations for error information: one for global level (where entire payload is rejected) and one where a message level reject is applicable. Errors Table Message Status Table Supported content types and limitations
One api send message request
Success
Returned on a message when more than one message was submitted, but they have a different status (example: one message was accepted, and one was rejected
Bad Request. Note that the global error object is not used because this is a message-level error
Unauthorized
Payment Required. User is out of funds/credits/currency/balance
Request was sent to a resource that does not exist
Service Unavailable
POST /v1/message HTTP/1.1
Host: platform.clickatell.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"messages": [
{
"channel": "sms",
"to": "2799900001",
"content": "Here is my message"
}
]
}{
"messages": [
{
"apiMessageId": "77fb29998253415fa5d66971d519d362",
"accepted": true,
"to": "2799900001",
"error": null
}
],
"error": null
}Last updated