Authentication
Pass your API Secret with every request via HTTP header:
Header Format
Authorization: Bearer ws_sec_YOUR_API_SECRET
# OR
X-API-Key: ws_sec_YOUR_API_SECRET
Send SMS Message
POST
/api/v1/sms/send
Submit an SMS message for immediate termination.
Request Body Parameters
to
required
Recipient mobile number in international E.164 format (e.g.
+9779841234567).
message
required
Message content (supports standard GSM 7-bit and Unicode/Nepali/Bengali).
sender
optional
Your approved Sender ID (e.g.
WEBSTUDIOSMS). Uses account default if omitted.
✔ Response Example (200 OK)
{
"success": true,
"message_id": "WS-MSG-MWLYKL8N-B6E7F08C",
"status": "accepted",
"sms_count": 1,
"recipient": "9779841234567"
}
Check Delivery Status
GET
/api/v1/sms/{messageId}
Retrieve delivery status and timestamps for a message.
Path Parameters
messageId
required
The message ID returned from
POST /sms/send.
✔ Response Example (200 OK)
{
"success": true,
"data": {
"message_id": "WS-MSG-MWLYKL8N-B6E7F08C",
"recipient": "9779841234567",
"sender": "WEBSTUDIOSMS",
"status": "delivered",
"dlr_status": "DELIVRD",
"delivered_at": "2026-11-18T10:08:23.038Z"
}
}
Check Account Balance
GET
/api/v1/account/balance
Returns your current prepaid balance and available credit.
✔ Response Example (200 OK)
{
"success": true,
"data": {
"customer_code": "CUST-ARYAN-01",
"currency": "USD",
"balance": 1250.5,
"credit_limit": 500.0,
"available_credit": 1750.5
}
}
Delivery Receipts (DLR) Webhook
Real-time delivery status pushed to your webhook URL via HTTP POST:
Webhook Payload
{
"event": "message.dlr_updated",
"message_id": "WS-MSG-MWLYKL8N-B6E7F08C",
"recipient": "9779841234567",
"sender": "WEBSTUDIOSMS",
"status": "delivered",
"dlr_status": "DELIVRD",
"delivered_at": "2026-11-18T10:08:23.038Z"
}
Your endpoint should acknowledge with an HTTP 200 OK status.