VioSMS Public API Developer Documentation

Integrate VioSMS into your own applications to automatically buy and verify numbers. All API endpoints require an API Key.

API Base URL
https://vio-sms.com

All API requests must use this base URL.
Example: https://vio-sms.com/api/v1/balance

Moving from SMS-Activate?

The VioSMS API is not a drop-in replacement for SMS-Activate; we mapped the most common operations in one table.

Migration guide

Authentication

Authenticate your API requests by including your secret API key in the Authorization HTTP header.

HTTP Header
Authorization: Bearer YOUR_API_KEY

Code 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"}'
GET/api/v1/balance

Returns your current account balance.

Response
{
  "status": "success",
  "balance": 15.50,
  "currency": "USD"
}
GET/api/v1/services

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.

Response
{
  "status": "success",
  "data": [
    {
      "code": "wa",
      "name": "WhatsApp",
      "price": 0.25
    }
  ]
}
GET/api/v1/countries

Retrieve a list of all available countries and their codes. You must use the code from this response when purchasing a number.

Response
{
  "status": "success",
  "data": [
    {
      "code": "6",
      "name": "Indonesia",
      "rus": "Индонезия"
    },
    {
      "code": "62",
      "name": "Turkey",
      "rus": "Турция"
    }
  ]
}
POST/api/v1/buy

Purchases a new phone number. The cost will be deducted from your balance.

ParameterIntegrate 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".

Request
{
  "service": "wa",
  "country": "62"
}
Response
{
  "status": "success",
  "data": {
    "id": "cuid...",
    "phone": "+1234567890",
    "price": 1.25,
    "expiresAt": "2026-06-05T12:00:00.000Z"
  }
}
GET/api/v1/status

Checks the SMS verification status of an activation.

ParameterIntegrate 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.

Response
{
  "status": "success",
  "data": {
    "id": "cuid...",
    "status": "SMS_RECEIVED",
    "phone": "+1234567890",
    "smsCode": "456789",
    "smsText": "WhatsApp code: 456789"
  }
}
POST/api/v1/cancel

Cancels an activation and refunds the cost if no SMS was received.

ParameterIntegrate 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.

Request
{
  "id": "cuid..."
}
Response
{
  "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.

Response
{
  "error": "Insufficient balance",
  "balance": 0.12,
  "required": 0.41
}
HTTPerrorMeaning and what to do
400Missing required parameters: service, countryA required parameter is missing.
400Service not available for this countryThis service is not sold in the selected country. Check the codes with /services and /countries.
400Activation 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.
400Cannot cancel: SMS already received. Fetch it via /status.The code has already arrived, so the activation cannot be cancelled. Read it with /status.
401Invalid API keyThe API key is missing or wrong.
402Insufficient balanceNot enough balance. balance shows what you have, required shows what the number costs.
403Account is suspended or inactiveThe account is suspended.
403service_blockedThis service is temporarily closed for you after repeated failed activations. The Retry-After header gives the remaining seconds.
404Activation not foundThere is no activation with this ID on your account.
500No 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.
503Could not cancel right now, please retryThe cancellation could not go through right now. Try again in a few seconds.

Activation statuses

WAITINGThe number is active and waiting for the SMS.
SMS_RECEIVEDThe code has arrived, in smsCode and smsText.
COMPLETEDThe code was received and the number's window has closed.
CANCELLEDCancelled 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.

Download openapi.jsonhttps://vio-sms.com/openapi.json

Ready-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