VioSMS Public API Developer Documentation
Integrate VioSMS into your own applications to automatically buy and verify numbers. All API endpoints require an API Key.
https://vio-sms.comAll API requests must use this base URL.
Example: https://vio-sms.com/api/v1/balance
The VioSMS API is not a drop-in replacement for SMS-Activate; we mapped the most common operations in one table.
Authentication
Authenticate your API requests by including your secret API key in the Authorization HTTP header.
Authorization: Bearer YOUR_API_KEYCode Examples
Buy a number, wait for the code, cancel if it never comes. The whole flow in your language: copy it and add your API key.
# Balance
curl https://vio-sms.com/api/v1/balance \
-H "Authorization: Bearer YOUR_API_KEY"
# Buy a WhatsApp number in the United Kingdom (country 16)
curl -X POST https://vio-sms.com/api/v1/buy \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"service": "wa", "country": "16"}'
# Check for the code (id comes from the buy response)
curl "https://vio-sms.com/api/v1/status?id=ACTIVATION_ID" \
-H "Authorization: Bearer YOUR_API_KEY"
# No code? Cancel and get refunded (2+ minutes after buying)
curl -X POST https://vio-sms.com/api/v1/cancel \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "ACTIVATION_ID"}'Returns your current account balance.
{
"status": "success",
"balance": 15.50,
"currency": "USD"
}Returns a list of all available services and their minimum prices.
Note: If you are looking for a specific service like Hinge or Tinder, use this endpoint to fetch all available service codes dynamically.
{
"status": "success",
"data": [
{
"code": "wa",
"name": "WhatsApp",
"price": 0.25
}
]
}Retrieve a list of all available countries and their codes. You must use the code from this response when purchasing a number.
{
"status": "success",
"data": [
{
"code": "6",
"name": "Indonesia",
"rus": "Индонезия"
},
{
"code": "62",
"name": "Turkey",
"rus": "Турция"
}
]
}Purchases a new phone number. The cost will be deducted from your balance.
| Parameter | Integrate VioSMS into your own applications to automatically buy and verify numbers. All API endpoints require an API Key. |
|---|---|
| servicestring* | Service code (e.g. "wa" for WhatsApp). |
| countrystring* | Country code (e.g. "62" for Turkey). /countries returns every code. |
| operatorstring | Optional operator code. Default is "any". |
{
"service": "wa",
"country": "62"
}{
"status": "success",
"data": {
"id": "cuid...",
"phone": "+1234567890",
"price": 1.25,
"expiresAt": "2026-06-05T12:00:00.000Z"
}
}Checks the SMS verification status of an activation.
| Parameter | Integrate VioSMS into your own applications to automatically buy and verify numbers. All API endpoints require an API Key. |
|---|---|
| idstring* | The unique Activation ID returned from the buy endpoint. |
{
"status": "success",
"data": {
"id": "cuid...",
"status": "SMS_RECEIVED",
"phone": "+1234567890",
"smsCode": "456789",
"smsText": "WhatsApp code: 456789"
}
}Cancels an activation and refunds the cost if no SMS was received.
| Parameter | Integrate VioSMS into your own applications to automatically buy and verify numbers. All API endpoints require an API Key. |
|---|---|
| idstring* | The unique Activation ID to cancel. |
{
"id": "cuid..."
}{
"status": "success",
"message": "Activation cancelled and refunded"
}Error Codes
When a request fails, the response carries an HTTP status code and an error field. Branch on the HTTP code in your program rather than on the message text.
{
"error": "Insufficient balance",
"balance": 0.12,
"required": 0.41
}| HTTP | error | Meaning and what to do |
|---|---|---|
| 400 | Missing required parameters: service, country | A required parameter is missing. |
| 400 | Service not available for this country | This service is not sold in the selected country. Check the codes with /services and /countries. |
| 400 | Activation can be cancelled only after 2 minutes. Try again in N seconds. | Cancelling is allowed 2 minutes after buying. Wait retryAfter seconds and try again. |
| 400 | Cannot cancel: SMS already received. Fetch it via /status. | The code has already arrived, so the activation cannot be cancelled. Read it with /status. |
| 401 | Invalid API key | The API key is missing or wrong. |
| 402 | Insufficient balance | Not enough balance. balance shows what you have, required shows what the number costs. |
| 403 | Account is suspended or inactive | The account is suspended. |
| 403 | service_blocked | This service is temporarily closed for you after repeated failed activations. The Retry-After header gives the remaining seconds. |
| 404 | Activation not found | There is no activation with this ID on your account. |
| 500 | No numbers available for this service/country right now. Please try another country. | No free numbers in this country right now. Try another country; nothing is charged. |
| 503 | Could not cancel right now, please retry | The cancellation could not go through right now. Try again in a few seconds. |
Activation statuses
WAITING | The number is active and waiting for the SMS. |
SMS_RECEIVED | The code has arrived, in smsCode and smsText. |
COMPLETED | The code was received and the number's window has closed. |
CANCELLED | Cancelled or expired. The price was returned to your balance. |
Rules to know
- Each number is valid for 20 minutes. If no SMS arrives in that time, the activation is cancelled automatically and the price goes back to your balance.
- If no code has come, you can cancel with /cancel 2 minutes after buying and get the price back at once.
- Checking the status every 5 seconds is enough.
OpenAPI File
Download the whole API as an OpenAPI 3.0 file. Import it into Postman, Insomnia or Swagger Editor to try every endpoint right away, or generate a client in your language.
https://vio-sms.com/openapi.jsonReady-to-run examples in cURL, Python, Node.js and PHP (buy a number, wait for the code, cancel for a refund) are on GitHub.
Examples on GitHub