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

ParameterRequiredValue
usersNameYesYour UID, shown in My profile › API access
keyYesAn enabled API key
routeYes1 promotional (marketing), 2 transactional
senderIdTransactionalAn approved sender ID (header) of the route
numbersYesOne or more mobile numbers, separated by commas
messageYesThe text, matching an approved DLT template (URL-encoded)
smsTypeNo1 normal (default), 2 flash, 3 unicode
scheduleType / scheduleTimeNoSend later instead of now
removeDuplicateNo1 to send once to repeated numbers
formatNojson (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.