Activation V2
SMSPVA / API REFERENCE
All service prices
Read service prices across countries.
SMSPVA API
Authentication
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
apikey | header | string | Yes | Your API key |
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
voice | query | integer | No | Number type: 0 - SMS, 1 - caller-ID, 2 - voice call. Defaults to 0. (enum: [0,1,2]; default: 0) |
No request body is required.
How to use this method
Compare service prices across countries. For a more focused view, use Service price or Country operator prices. Check number counts before placing an order.
Request examples
Runtime requirements and environment setup. cURL uses a POSIX shell. JavaScript and TypeScript run in Node.js. Java uses the standard HTTP client and prints raw JSON; use your application’s JSON library to inspect the body.
: "${SMSPVA_API_KEY:?Set SMSPVA_API_KEY}"
curl --fail-with-body --max-time 30 --request GET \
--url "https://api.smspva.com/activation/servicesprices?voice=0" \
--header "apikey: $SMSPVA_API_KEY"Responses
The examples below show the response format. Prices, stock and account values are sample data; use the API response for current values.
| HTTP | Description |
|---|---|
| 200 | Successful operation |
HTTP 200
Successful operation
Illustrative response
{
"statusCode": 200,
"data": [
{
"service": "opt0",
"serviceDescription": "myopinions & erewards",
"country": "CY",
"price": "0.50"
}
]
}Response fields
| Name | Type | Description |
|---|---|---|
statusCode | integer | Result status code |
data | array<object> | Response data |
data[].service | string | Service |
data[].serviceDescription | string | Service description. |
data[].country | string | Country |
data[].price | string | Price. |
Related guides
If a connection fails during an order-changing request, check the order before trying again.