Last updated: December 15, 2025
This documentation explains how to use our API to automate your orders for both Single SMS services and number rental services.
All API requests should be made to:
https://vavsms.com/api
Include your API key in the URL as shown in the examples below. You can find your API key on your profile page.
/getCategories
Returns a list of available categories for Single SMS services.
Response
[
{
"id": 1,
"name": "Google/Youtube",
"cheapest": 0.30,
"maxRate": 75
},
...
]
/getServices/{category_id}
Returns a list of services available for the specified category.
| Name | Type | Description |
|---|---|---|
| category_id | integer | ID of the category |
Response
[
{
"id": 1,
"name": "United States",
"price": 1.20,
"workRate": 25,
"category": "Google/Youtube"
},
...
]
/getServiceDetails/{service_id}
Returns the price and stock information for a specific service.
| Name | Type | Description |
|---|---|---|
| service_id | integer | ID of the service |
Response
{
"id": 1,
"price": 1.20,
"stock": 250
}
/{api_key}/getBalance
Returns the current balance of the user.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
Response
{
"balance": 30
}
/{api_key}/getNumber/{service_id}
Orders a new number for the specified service.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
| service_id | integer | ID of the service |
Response
{
"success": true,
"message": "Number purchased successfully.",
"number_id": 10001,
"number": "+18887776655"
}
number_id and number values, as you'll need them to read messages.
/{api_key}/getMessage/{number_id}
Retrieves the received message for the specified number.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
| number_id | integer | ID of the number |
Response
{
"code": "888777",
"text": "G-888777 is your Google verification code.",
"id": "10001",
"status": 0
}
Status codes: 0 = Waiting for message, 1 = Message received (code shown), -1 = Number is cancelled
/{api_key}/cancelNumber/{number_id}
Cancels the specified number. If cancelled within 10 minutes, the balance will be refunded.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
| number_id | integer | ID of the number |
Response
{
"success": true,
"message": "Number canceled and balance refunded."
}
/getRentCountries
Returns a list of available countries for number rental.
Response
[
{"id": 0, "name": "Russia"},
...
]
/getRentServices/{country_id}/{time}
Retrieves a list of available rental services for a specific country and rental duration.
| Name | Type | Description |
|---|---|---|
| country_id | integer | The ID of the country (obtained from Get Rent Countries) |
| time | integer | Rental duration in hours (4, 12, or multiples of 24, up to 672) |
Response
[
{
"id": "go",
"name": "Google",
"stock": {"current": 10, "total": 20},
"price": 1.50
},
...
]
/getRentNumber/{api_key}/{country_id}/{service_id}/{time}
Rents a number for the specified service and country.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
| country_id | integer | The ID of the country |
| service_id | string | The ID of the service |
| time | integer | Rental duration in hours |
Response
{
"success": true,
"number_id": 100,
"number": "+18887776655"
}
number_id value, as you'll need it to read messages.
/getRentActivations/{api_key}
Returns a list of active rent numbers for the user.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
Response
{
"success": true,
"number_id": 100,
"number": "+79998887766"
}
/getRentMessage/{api_key}/{number_id}
Retrieves messages received for the specified rented number.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
| number_id | integer | The ID of the rented number |
Response
{
"id": 100,
"number": "+18887776655",
"service": "Google",
"country_id": 0,
"message": [
{
"from": "+15559876543",
"message": "Your verification code is 123456",
"time": 1625097600
}
],
"msgcount": 1,
"start_time": 1625097000,
"end_time": 1625183400
}
/cancelRentNumber/{api_key}/{number_id}
Cancels the specified rented number. Cannot cancel after 20 minutes or if SMS received.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
| number_id | integer | ID of the rented number |
Response
{
"success": true,
"message": "Number has been cancelled successfully. Your money has been refunded to your account."
}
/getRentRenewPrice/{api_key}/{number_id}/{time}
Returns the price to renew a rented number.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
| number_id | integer | ID of the rented number |
| time | integer | Renewal duration (optional) |
Response
{
"success": true,
"price": 0.50,
"number": "+79998887766"
}
/renewRentNumber/{api_key}/{number_id}/{time}
Renews the specified rented number.
| Name | Type | Description |
|---|---|---|
| api_key | string | Your API key |
| number_id | integer | ID of the rented number |
| time | integer | Renewal duration (optional) |
Response
{
"success": true,
"message": "Number has been renewed successfully."
}
The API uses HTTP response codes to indicate the success or failure of requests. Common error codes include:
200: Success400: Bad Request401: Unauthorized404: Not Found500: Internal Server ErrorDetailed error messages may be included in the response body for debugging purposes.
Our API is limited to 100 requests per 10 seconds by IP address. Exceeding the limit will result in a 1 minute IP block.
For additional support or questions about the API, please contact us via the support system.