POST/send/sms

Function


The Post/send/sms method allows you to use your Telebroad account to send an SMS message to a recipient with a mobile phone or another Telebroad account that supports SMS messaging.


Parameters


There are no parameters in the header. All parameters go in the body in JSON Raw format.



ParameterTypeOperation
sms_linestringThe user's SMS line that will be used for sending the message.
receiver
stringThe number of the intended recipient of the message.
msgdataintegerThe actual content of the SMS message.


Example


To send the SMS messages "Hello world" from SMS line 1-646-702-443 use this syntax:


HTTP method: POST


Header

webserv.telebroad.com/api/teleconsole/rest/send/sms


Body

{"sms_line":"16467024430","receiver":"19178644345,"msgdata":"Hello world"}


Response:


If the message was sent successfully:

{

"error": null,

"result": true

}


If there was a problem sending the message:


{

"error":{

"code": 444,

"message": "Failed to send message"

}

}

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.