Frequently Asked Question
SMS API V1
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=919999999990,919999999999&message=message&sender=ABCDEF&route=4&country=91&DLT_TE_ID=TemplateId
SMS API V2
http://sms.moplet.com/api/v2/sendsms?authkey=YourAuthKey&mobiles=919999999990,919999999999&message=message&sender=ABCDEF&route=4&country=91&DLT_TE_ID=TemplateId
Parameter | Data type | Description |
authkey * | alphanumeric | Login authentication key (this key is unique for every user) |
mobiles * | integer | Keep numbers in international format (with country code), multiple numbers should be separated by comma (,) |
message * | varchar | Message content to send |
sender * | varchar | Receiver will see this as sender's ID. |
route * | varchar | If your operator supports multiple routes then give one route name. Eg: route=1 for promotional, route=4 for transactional SMS. |
country | numeric | 0 for international,1 for USA, 91 for India. |
flash | integer (0/1) | flash=1 (for flash SMS) |
unicode | integer (0/1) | unicode=1 (for unicode SMS) |
schtime | date and time | When you want to schedule the SMS to be sent. Time format could be of your choice you can use Y-m-d h:i:s (2020-01-01 10:10:00) Or Y/m/d h:i:s (2020/01/01 10:10:00) Or you can send unix timestamp (1577873400) |
afterminutes | integer | Time in minutes after which you want to send sms. |
response | varchar | By default you will get response in string format but you want to receive in other format (json,xml) then set this parameter. for example: &response=json or &response=xml |
campaign | varchar | Campaign name you wish to create. |
DLT_TE_ID * | The Template ID that is registered with DLT Platform | The Template ID that is registered with DLT Platform |
Parameters with (*) are mandatory.
Please note that if your templates are not registered and approved, the messages will not be delivered to your customers.
For any clarifications, please feel free to reach out to your account manager or write to us at support@moplet.com
Encode your API
What is URL encoding?
URL encoding converts characters into a format that can be send through internet We should use URL encode for all GET parameters because POST parameters are automatically encoded.
Why URL encoding?
URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format. URLs use some characters for special use in defining their syntax, when these characters are not used in their special role inside a URL, they need to be encoded. URL encoding is done to encode user input
Example:
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999&message=test & new&mobile&sender=ABCDEF&route=4
In this api the message content "test & new" includes '&' operator,due to which URL encoding is necessary, otherwise it will break your message content and an incomplete message will be sent
Encoded API
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999&message=test+%26+new&mobile&sender=ABCDEF&route=4
By encoding message content in api,complete message will be sent
Send message on multiple numbers
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4
To send message on multiple numbers numbers should be comma separated
Send unicode message
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&unicode=1
To send unicode message one more parameter will be added i.e unicode and it's value will be set to 1
Send flash message
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&flash=1
To send flash message one more parameter will be added i.e flash and it's value will be set to 1
JSON response
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&response=json
To get response in json format one more parameter will be added i.e response and it's value will be set to json
Send schedule message
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&schtime=2025-07-15 21:05:29
To schedule message i.e for future , one parameter will be added i.e schtime and it's value should be equal to that date and time,at which message should be sent. Note: for scheduling, date and time are mandatory.
Schedule unicode message
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&schtime=2025-07-15 21:05:29&unicode=1
Send message on group
Get
http://sms.moplet.com/api/sendhttp.php?authkey=YourAuthKey&message=test+%26+new&sender=ABCDEF&route=4&group_id=groupid
While sending message on group that contains numbers saved by user, parameter to be set is group_id and it's value should be equal to the existing group id
To view all groups and it's id's Get group id