SMS Marketing API Documentation

Base URL

https://rasi.top/api/

1. Send Single SMS

Endpoint: sendsms.php

Method: POST

ParameterRequiredDescription
api_keyYesAPI Key
secret_keyYesAPI Secret Key
typeYessingle
mobileYesRecipient mobile number
messageYesSMS 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"
}'

2. Send Bulk SMS

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"
}'

3. Send Dynamic SMS

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" }
  ]
}'

Success Response Example

{ "success": true,
"status": "success",
"sms_count": 2,
"charge": 2,
"user_balance": 498 }

Error Response Example

{ "success": false,
"message": "Invalid API credentials" }