SMS API for developers
SMS API built for developers
Send SMS from your website, mobile app, CRM, ERP or billing software with a simple HTTP API. Send messages, check your balance and fetch delivery status – in JSON or XML.
- Plain HTTP GET or POST
- JSON or XML responses
- Transactional & promotional
- Unicode and flash SMS
- IP-restricted API keys
- Balance and DLR APIs
# PHP $q = http_build_query([ 'usersName' => 'YOUR_UID', 'key' => 'YOUR_API_KEY', 'route' => 2, 'senderId' => 'TXAAVY', 'numbers' => '9895XXXXXX', 'message' => 'Your order #48213 is shipped. -Texaavy', ]); $res = file_get_contents('https://vasbay.com/webservice/smsSimpleApi.php?' . $q);
Send an SMS
GET or POST https://vasbay.com/webservice/smsSimpleApi.php
| Parameter | Required | Value |
|---|---|---|
usersName | Yes | Your UID, shown in My profile › API access |
key | Yes | An enabled API key |
route | Yes | 1 promotional (marketing), 2 transactional |
senderId | Transactional | An approved sender ID (header) of the route |
numbers | Yes | One or more mobile numbers, separated by commas |
message | Yes | The text, matching an approved DLT template (URL-encoded) |
smsType | No | 1 normal (default), 2 flash, 3 unicode |
scheduleType / scheduleTime | No | Send later instead of now |
removeDuplicate | No | 1 to send once to repeated numbers |
format | No | json (default) or xml |
Send SMS
smsSimpleApi.php sends to one or many numbers and returns a push ID.
Check balance
smsBalanceApi.php returns your marketing and transactional SMS credits.
Delivery status
smsStatusApi.php returns the status of every number in a push.
Customers get the full API document, with error codes and examples, in My profile › API access after signing in.
Frequently asked questions
Sign in to VASbay, open My profile › API access and create a key. You can lock the key to your server’s IP address and disable it at any time.
It is your VASbay login name in hexadecimal form, shown ready to copy in My profile › API access.
Any language that can make an HTTP request: PHP, Java, Python, Node.js, .NET, Go and others – and tools such as Postman or cURL.
Yes. Set
smsType=3 and URL-encode the message text.Every send returns a push ID. Call the delivery status API with it, or open the delivery report in the VASbay panel.
Ready to send your first message?
Create a free VASbay account, register your DLT details and start sending in minutes. Our team helps you with sender IDs and templates.