Endpoint: sendsms.php
Method: POST
| Parameter | Required | Description |
|---|---|---|
| api_key | Yes | API Key |
| secret_key | Yes | API Secret Key |
| type | Yes | single |
| mobile | Yes | Recipient mobile number |
| message | Yes | SMS content |
curl -X POST https://rasi.top/api/sendsms.php
-H "Content-Type: application/json"
-d '{
"api_key": "your_api_key",
"secret_key": "your_secret_key",
"type": "single",
"mobile": "019XXXXXXXX",
"message": "Hello from API"
}'
Type value: bulk
curl -X POST https://rasi.top/api/sendsms.php
-H "Content-Type: application/json"
-d '{
"api_key": "your_api_key",
"secret_key": "your_secret_key",
"type": "bulk",
"mobiles": ["019XXXXXXXX","018XXXXXXXX"],
"message": "Hello Everyone"
}'
Type value: dynamic
curl -X POST https://rasi.top/api/sendsms.php
-H "Content-Type: application/json"
-d '{
"api_key": "your_api_key",
"secret_key": "your_secret_key",
"type": "dynamic",
"sms": [
{ "msisdn": "019XXXXXXXX", "sms": "Hi User 1" },
{ "msisdn": "018XXXXXXXX", "sms": "Hi User 2" }
]
}'