SMS Push API Documentation
This document explains how to integrate with the SMS Push API using HTTP/HTTPS and XML.
1. HTTP / HTTPS API
Send Single SMS
http://domain:port/pushapi/sendmsg?username=xxxxxx&dest=xxxxxxxxxx&apikey=12345&signature=SENDERID&msgtype=TypeofMessage&msgtxt=message&custref=xxxxx&campaign=xxxx
Success Response
{
"code":"6001",
"desc":"Message received by platform.",
"reqId":"0332250011593877667921535",
"time":"2020-07-04 21:17:47.922",
"custRef":"12345",
"partMessageIds":["0332250011593877667921535"],
"totalMessageParts":1,
"campaignName":"test"
}
Error Response
{
"code":"110",
"desc":"INVALID_DESTINATION_NUMBER",
"totalMessageParts":0
}
Plain Text SMS
http://IP:port/pushapi/sendmsg?username=xxxxxxx&dest=xxxxxxxxxx&apikey=12345&signature=SENDERID&msgtype=PM&msgtxt=message&custref=xxxxx&campaign=xxxx
Unicode / Multilingual SMS
http://IP:port/pushapi/sendmsg?username=xxxxxxx&dest=xxxxxxxxxx&apikey=12345&signature=SENDERID&msgtype=UC&msgtxt=message&custref=xxxxx&campaign=xxxx
Bulk SMS
http://IP:port/pushapi/sendbulkmsg?username=xxxxxxx&dest=9999999999,8888888888,7777777777&apikey=12345&signature=SENDERID&msgtype=PM&msgtxt=message&custref=xxxxx&campaign=xxxx
Note: You can add multiple mobile numbers separated by commas.
HTTP Parameters
| S.No |
Parameter |
Type |
Description |
| 1 | username * | String | SMS Platform Account ID |
| 2 | dest * | String | Destination Mobile Number |
| 3 | apikey * | String | User API Key |
| 4 | signature * | String | Sender ID |
| 5 | msgType | String | PM = Plain Text, UC = Unicode |
| 6 | msgText | String | SMS Content |
| 7 | custref | String | Customer Reference ID |
| 8 | campaign | String | Campaign Name |
2. XML API
Endpoint
http://IP:Port/pushapi/sendxmlmsg
Sample XML Request
<xmlPushRequest username="xxxxx" pin="xxxxx">
<from>SENDERID</from>
<recipientList>
<recipient>
<destAddress>9999999999</destAddress>
<custref>a</custref>
</recipient>
<recipient>
<destAddress>8888888888</destAddress>
<custref>b</custref>
</recipient>
</recipientList>
<message>
<messageType>PM</messageType>
<messageTxt>Test Message</messageTxt>
</message>
</xmlPushRequest>
Sample XML Response
<xmlPushResponse>
<recipientList>
<recipient>
<code>6001</code>
<desc>Message received by platform.</desc>
<timestamp>2019-02-23 17:29:39.747</timestamp>
<requestId>2813050011550923179747</requestId>
</recipient>
</recipientList>
</xmlPushResponse>
Supported XML Requests
- One to One SMS
- One to Many SMS
XML Parameters
| S.No |
Parameter |
Type |
Description |
| 1 | from * | String | Sender ID |
| 2 | destAddress * | String | Recipient Mobile Number |
| 3 | custref * | String | Unique Customer Reference |
| 4 | messageType * | String | PM / UC |
| 5 | messageTxt * | String | SMS Content |
API Response Codes
| Error Code |
Description |
| -1 | Invalid Credentials |
| -2 | Invalid API Key |
| -3 | Invalid Destination |
| -4 | Invalid Signature |
| -5 | Invalid Message Type |
| -6 | Invalid Message Text |
| -10 | Internal Error Occurred |
| 6001 | Success |