Login and sign-up codes
Verify phone numbers and protect sign-ins with one-time passwords.
Connect your website, app, POS or ERP to every Sri Lankan mobile network. A plain REST API with JSON replies, bearer-key authentication and delivery webhooks, at the same per-message price as the portal.
Create an account, copy your API key from the Developer / API page and run one of these. The reply gives the cost, the part count and an ID for every message.
# one request, any number of recipients curl -X POST https://avcsms.lk/api/v1/sms/send \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to": "0771234567", "message": "Your OTP is 482913", "sender_id": "MYSHOP"}'
$ch = curl_init('https://avcsms.lk/api/v1/sms/send'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'], CURLOPT_POSTFIELDS => json_encode(['to' => '0771234567', 'message' => 'Your OTP is 482913']), ]); $reply = json_decode(curl_exec($ch), true);
const res = await fetch("https://avcsms.lk/api/v1/sms/send", { method: "POST", headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ to: "0771234567", message: "Your OTP is 482913" }), }); console.log(await res.json());
import requests r = requests.post("https://avcsms.lk/api/v1/sms/send", headers={"Authorization": "Bearer YOUR_API_KEY"}, json={"to": ["0771234567", "0712345678"], "message": "ඔබේ OTP 482913"}) print(r.status_code, r.json())
/api/v1/sms/sendSend one or up to 10,000 messages
GET/api/v1/sms/{id}Status of one message
GET/api/v1/balanceBalance and rate
POST/api/v1/countParts and cost before sending
The API sends through the same account, balance and sender IDs as the web portal.
The details that matter once real customers depend on your messages.
If your software knows a phone number and something worth saying, it can send an SMS.
Verify phone numbers and protect sign-ins with one-time passwords.
Confirm orders, payments and dispatches from your online store or POS.
Appointment, renewal and due-date reminders scheduled straight from your database.
Tell your team when a server, a sensor or a stock level needs attention.
Send attendance, results and notices from the software you already run.
Send invoice and receipt notices at the moment they are created.
API messages cost the same as portal messages. All taxes are included and credit never expires.
Create an account, copy the key and send your first message in minutes.