- 16 Oct 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Send_SMS
- Updated on 16 Oct 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Enables agents to send SMS messages via the API. Agents are identified by their extensions (agent parameter). The destination numbers are specified in the number parameter.
Agent extension
Destination phone number
SMS body. 1-1600 chars. Links are not supported in SMS
Your call center SenderID. If this field is empty, a random SenderID from the 'Default' group is used. The request fails if you have no SenderIDs configured
Name of sending application or CRM
The CRM Account ID for the contact at the destination number. This parameter may also be used when you specify the crm parameter.
All parameters are valid and the SMS sending is successful.
Success
SMS successfully sent
{
"sms_id": "cf283919-86f4-46a6-8b45-29bd7a752827",
"segments": 1
}
Incorrect body parameters
One of the Error Messages from 'SMS Error Types'
One of the Error Messages from 'SMS Error Types'
{
"error": "SMS is not allowed"
}
Invalid api_key
Error1
Invalid API key
{
"error": "Invalid api_key"
}