All API requests use your Authentication Token Key. Pass it as the authentic-key parameter in every API call.
YOUR_AUTH_KEY
API (Application Programming Interface) lets developers integrate SMS messaging into their applications and send SMS to any number without logging into the panel.
Send SMS to multiple numbers by separating them with commas.
Add unicode=2 to send in regional scripts (Hindi, Arabic, etc.).
Use the time parameter to schedule delivery (format: YYYY-MM-DD HH:MMam/pm).
Send personalized messages to different numbers. Separate messages with ^ โ each segment maps to the matching number in order.
Check delivery status of a message sent today using the message ID.
Add duedate=1 to retrieve delivery status for messages older than today.
Retrieve the available credit balance for a specific route.
Using this feature you can send SMS through API without passing templateid. You must add the template and template ID on the SMS portal first: Manager โ Manage Template โ Create Template.
๐ข Add an SMS Template
๐ข Template Syntax
{#var#} in your template to mark where dynamic content will go."Your OTP code is {#var#}. Please use it within 10 minutes."๐ข Pass Template with Single Quotes
', enclose it in double single quotes ''.'Your OTP code is {#var#}. Don''t share it with anyone.'"Your OTP code is 552354. Don't share it with anyone."๐ข Replace Placeholders
{#var#} with the actual content wrapped in {}.{#var#} with {123456}.{}."Your OTP code is 123456. Please use it within 10 minutes."Send SMS using XML format. Pass your XML data as the xml URL parameter with format=XML.
Webhook is the URL to which we send request details as a POST request. Content type is application/x-www-form-urlencoded.
The following fields are sent with each webhook request:
| Parameter Name | Example Value | Description |
|---|---|---|
| authentic-key | YOUR_AUTH_KEY | Token key of your SMS account. |
| senderid | TXTSMS | Approved Sender ID of your SMS account. |
| number | 91XXXXXXXXXX | 10-digit mobile number with country code. |
| message | Hello World | The SMS message body. |
| templateid | XXXXXXX | DLT-registered template ID. |
Route IDs are mandatory in every API call. Pass the appropriate route ID using the route parameter.
curl "http://103.182.103.232/http-tokenkeyapi.php?\
authentic-key=YOUR_AUTH_KEY&\
senderid=SENDER&route=1&\
number=91XXXXXXXXXX&message=Hello+World&\
templateid=XXXXXXX"
curl "http://103.182.103.232/tokenapi-nontid.php?\
authentic-key=YOUR_AUTH_KEY&\
senderid=SENDER&route=1&\
number=91XXXXXXXXXX&message=Hello+SMS"
{
"type": "success",
"message": "SMS Sent Successfully",
"data": { "sent": 1, "failed": 0 }
}
{
"type": "error",
"message": "Invalid authentication key."
}