Welcome to VaraSMS
Virtual Number Made Easy
Connect VaraSMS to your apps, bots and systems with fast, secure and scalable endpoints built for developers.
GET /api/balance
Host: api.varasms.com
Authorization: Bearer YOUR_API_KEY
{
"status": "success",
"balance": "125.50"
}
Connect your apps, bots and systems with secure VaraSMS endpoints. Simple requests, fast responses and scalable performance.
/stubs/handler_api.php?action=getBalance&api_key=YOUR_KEY
/stubs/handler_api.php?action=getNumber&api_key=YOUR_KEY&service=ID&country=ID
/stubs/handler_api.php?action=getStatus&api_key=YOUR_KEY&id=ACTIVATION_ID
/stubs/handler_api.php?action=setStatus&api_key=YOUR_KEY&id=ID&status=8
/stubs/handler_api.php?action=getCountries&api_key=YOUR_KEY
/stubs/handler_api.php?action=getServices&api_key=YOUR_KEY&country=ID
Get your API key, make your first request and start automating virtual number purchases instantly.
Register on VaraSMS and access your dashboard to generate your personal API key.
Use a simple GET request to access balance, countries, services or buy numbers.
GET /stubs/handler_api.php?action=getBalance&api_key=YOUR_KEY
Responses are structured and easy to parse in any language like PHP, Python or JavaScript.
{"status":"success","balance":"120.00"}
VaraSMS API works with any language that can send HTTP requests. Use these starter examples to begin quickly.
$url = "https://api.varasms.com/stubs/handler_api.php?action=getBalance&api_key=YOUR_KEY";
$response = file_get_contents($url);
echo $response;
import requests
url = "https://api.varasms.com/stubs/handler_api.php?action=getBalance&api_key=YOUR_KEY"
response = requests.get(url)
print(response.text)
fetch("https://api.varasms.com/stubs/handler_api.php?action=getBalance&api_key=YOUR_KEY")
.then(res => res.text())
.then(data => console.log(data));
curl "https://api.varasms.com/stubs/handler_api.php?action=getBalance&api_key=YOUR_KEY"
Use these common response codes to handle success, waiting states and errors inside your applications.
VaraSMS API is optimized for reliable performance while protecting systems and accounts with secure best practices.
Launch automation faster with secure endpoints, reliable virtual number services and developer-ready infrastructure.