Developer documentation
Send OTP and notification SMS from your website, app or software with a simple HTTP API. Ready code for PHP, Laravel, Node.js and Python.
curl -X POST "https://[API_URL]/send" \ -d "api_key=YOUR_API_KEY" \ -d "senderid=YOUR_SENDER_ID" \ -d "number=8801XXXXXXXXX" \ -d "message=Your OTP is 482913"
Quick start
Open an account
Register — you get 50 free SMS.
Get your API key
Log in to the panel and copy the key from API settings.
Send a test
Use the code below to send a message to your own number.
Check the report
Confirm delivery in the panel's delivery report.
Sending SMS
Send a message with a single HTTP request. Bangla messages must be sent as UTF-8. Always use your API key from your server — never put it in browser code on your website.
Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
api_key | Yes | Your API key from the panel | YOUR_API_KEY |
senderid | Yes | An approved masking sender ID, or your panel's non-masking ID | YOUR_SENDER_ID |
number | Yes | Recipient number, in 8801XXXXXXXXX format | 8801712345678 |
message | Yes | Message text — Bangla and English both work | Your OTP is 482913 |
type | No | [Message type — confirm against the panel's API documentation] | text |
Responses and status codes
Every request returns a JSON response. Check response_code to see whether the message was accepted.
{
"response_code": "[CODE]",
"message_id": "[MESSAGE_ID]",
"message": "[STATUS TEXT]"
} | Code | Meaning | What to do |
|---|---|---|
| [Success code] | Message accepted | Nothing |
| [Code] | Invalid API key | Copy the key from the panel again |
| [Code] | Insufficient balance | Top up with bKash or Nagad |
| [Code] | Invalid number | Use the 8801XXXXXXXXX format |
| [Code] | Sender ID not approved | Use an approved sender ID |
Checking balance
Run it once a day to warn yourself automatically when the balance runs low.
Plugins and packages
Need help with the integration?
The 30-minute setup call is free. And if you want the full integration done, Virtuanic's engineers will build it into your system.
Send your first OTP today
Test with 50 free SMS.