Welcome to VaraSMS
Virtual Number Made Easy
Integrate SMS activations, OTP retrieval, balance management and transaction history using the premium VaraSMS API v2 infrastructure.
{
"status": "ok",
"order_id": "45821",
"number": "+2348123456789",
"service": "WhatsApp",
"otp": "483920",
"cost": "120.00",
"country": "Nigeria"
}
VaraSMS provides multiple API systems designed for developers, automation platforms and advanced integrations.
Simple GET-based API compatible with SMS-Activate style integrations.
Modern JSON REST API with advanced order management, transaction history and scalable automation.
Long-term virtual number rentals for businesses and enterprise usage.
Powerful API infrastructure designed for OTP platforms, automation systems and enterprise integrations.
Authenticate requests using secure API keys with support for query parameters and request headers.
Use lightweight plain-text compatible responses or advanced JSON REST responses with API v2.
Access balance details, transaction history, order tracking and automated refund handling.
Buy virtual numbers, poll OTP status, retry SMS and manage activation lifecycle.
Easy integration examples for PHP, JavaScript and Python applications.
Optimized infrastructure with scalable endpoints, fast response times and rate limit protection.
Integrate the VaraSMS REST API in minutes using secure authentication and JSON responses.
Create your VaraSMS account and generate your secure API key from the dashboard.
Make GET or POST requests to buy numbers, check balances or retrieve OTP codes.
Parse structured JSON responses for balances, transactions and OTP statuses.
Poll activation status, retrieve OTP codes and manage number lifecycle automatically.
Finish successful activations or cancel unused orders with automatic refunds.
Full JSON-based API infrastructure for wallet management, OTP activations, transactions, order control and advanced automation.
/v1/?action=balance
Retrieve wallet balance, total deposits, total OTP usage and account currency.
/v1/?action=transactions
Fetch paginated transaction history, funding records and OTP order charges.
/v1/?action=countries
Retrieve all supported countries, ISO codes and activation availability.
/v1/?action=services
Retrieve available services, pricing, stock count and service codes.
/v1/?action=buy
Purchase virtual numbers instantly for OTP verification and SMS activation.
/v1/?action=check
Poll OTP delivery status and retrieve SMS verification codes in real time.
/v1/?action=cancel
Cancel inactive activations with automatic wallet refund processing.
/v1/?action=finish
Mark successful activations as completed after OTP verification is finished.
/v1/?action=ban
Report invalid or problematic numbers directly through the API infrastructure.
VaraSMS REST API returns modern JSON responses with standardized success and error handling.
Successful API requests return a clean JSON object containing response data and status confirmation.
{
"status": "ok",
"balance": 4500.00,
"currency": "NGN",
"total_otp": 42
}
Failed requests return detailed error messages to simplify debugging and request validation.
{
"status": "error",
"message": "Insufficient balance"
}
API request completed successfully.
Missing or invalid request parameters.
Invalid or missing API key.
Too many requests sent to the API.
Upstream provider service failed.
Refund processed automatically on cancellation.
Start integrating VaraSMS API instantly using ready-to-use code examples for popular languages.
<?php
$api_key = "YOUR_API_KEY";
$url = "https://api.varasms.com/v1/?action=balance&api_key=".$api_key;
$response = file_get_contents($url);
$data = json_decode($response, true);
print_r($data);
?>
const apiKey = "YOUR_API_KEY";
fetch(
"https://api.varasms.com/v1/?action=balance&api_key=" + apiKey
)
.then(res => res.json())
.then(data => {
console.log(data);
});
import requests
api_key = "YOUR_API_KEY"
url = f"https://api.varasms.com/v1/?action=balance&api_key={api_key}"
response = requests.get(url)
print(response.json())
curl --request GET \
"https://api.varasms.com/v1/?action=balance&api_key=YOUR_API_KEY"
VaraSMS API is built with modern security practices, request protection and scalable infrastructure for stable integrations.
Every request requires a valid API key to prevent unauthorized access and abuse.
All API traffic is encrypted using HTTPS to secure requests and sensitive data transmission.
Intelligent rate limiting helps protect infrastructure stability and provider performance.
Optimized backend infrastructure ensures reliable uptime and fast response delivery.
To maintain stable performance and avoid temporary restrictions, follow the recommended API request practices below.
Integrate OTP activations, wallet systems, transaction history and automated verification workflows using the modern VaraSMS REST API platform.
Everything developers need to know about VaraSMS REST API integration and automation.
Login to your VaraSMS dashboard and navigate to the API section to generate your secure API key instantly.
Yes. VaraSMS API v2 returns structured JSON responses for balances, transactions, OTP status and activations.
Yes. You can cancel inactive orders using the cancel endpoint. Eligible activations are refunded automatically.
Yes. VaraSMS provides a compatible API layer for easier migration from SMS-Activate style systems.
VaraSMS API works with PHP, JavaScript, Python, cURL and any language capable of sending HTTP requests.