SMS verification API

NuvioSMS API handles number purchases, code checks, cancellations, and credit/price queries in a single HTTP request. Using the industry-standard handler_api method, just replace the endpoint and API key in your existing code to connect instantly.

GET /stubs/handler_api.php
  ?api_key=API_KEY&action=getNumber
  &service=telegram&country=gb

ACCESS_NUMBER:NV8Q2K7:447700900123

GET ...&action=getStatus&id=NV8Q2K7
STATUS_OK:48215
Industry standard method
handler_api

Industry standard method

Per API key
300 per minute

Per API key

Country / Service
145 / 1,255

Country / Service

Auto refund if no code by then
20 min

Auto refund if no code by then

How do I get an API key?

After logging in, create a key in the API menu on the Account screen. The key is shown only once when created, so save it right away. The API uses the same credit and prices as the website.

What is the base address?

All requests are sent as GET to the same address with api_key and action parameters.

https://nuviosms.com/stubs/handler_api.php?api_key=API_KEY&action=...

What requests can I send?

7 types of requests covering number purchase, code verification, cancellation, and credit checks.

actionWhat it doesSample response
getBalanceCheck creditACCESS_BALANCE:12.50
getPrices&service=telegram&country=gbPrices and available numbers by service and country{"gb":{"telegram":{"cost":0.207,"count":8877728}}}
getNumber&service=telegram&country=gbBuy a numberACCESS_NUMBER:ID:PHONE
getStatus&id=IDCheck codeSTATUS_WAIT_CODE / STATUS_OK:CODE
setStatus&id=ID&status=8Cancel number (before a code arrives, full refund)ACCESS_CANCEL
setStatus&id=ID&status=3Get one more code on the same numberACCESS_RETRY_GET
setStatus&id=ID&status=6FinishACCESS_ACTIVATION

Parameter

NameRequiredDescription
api_keyAllAPI key created on the Account screen
actionAllgetBalance, getPrices, getNumber, getStatus, setStatus
servicegetNumberService code (e.g. telegram, whatsapp, google). Same as the services page URL
countrygetNumberTwo-letter country code (e.g. gb, us, id)
idgetStatus, setStatusNumber ID returned by getNumber (starts with N-)
statussetStatus8 cancel, 3 one more code, 6 finish, 1 ready

Response text and meaning

Responses come as short text. We also indicate if credit was deducted.

ResponseMeaningMoney
ACCESS_NUMBER:ID:PHONEYou got a numberNumber price is charged
STATUS_WAIT_CODEWaiting for the codeUnchanged
STATUS_OK:CODECode receivedPayment complete
STATUS_WAIT_RETRY:CODEWaiting for the next code (previous codes included)No extra cost
STATUS_CANCELCancelled or time is upRefunded if no code arrived
ACCESS_CANCELCancelledFull refund
ACCESS_RETRY_GETWaiting for one more code on the same numberNo extra cost
ACCESS_ACTIVATIONYou finished using the numberUnchanged
NO_BALANCEGet it right after you top upNot charged
NO_NUMBERSNumbers for that country are not available right nowNot charged
NO_ACTIVATIONSYou have 20 open numbersNot charged
EARLY_CANCEL_DENIEDFor numbers with a code, finish (6) instead of cancellingUnchanged
BAD_KEYInvalid API keyNot charged
BAD_SERVICE / BAD_COUNTRYInvalid service or country codeNot charged
NO_ACTIVATIONNumber ID not foundUnchanged
TOO_MANY_REQUESTSExceeded 300 requests per minuteNot charged

How does API code retrieval work?

4 simple steps: get a number, enter it, check the code, and you're done.

  1. Step 1

    Get a number

    Call getNumber with service and country to get a number.

    action=getNumber&service=telegram&country=gb
    > ACCESS_NUMBER:NV8Q2K7:447700900123
  2. Step 2

    Enter number

    Enter the received number in the signup form or your program.

    +44 7700 900123
  3. Step 3

    Check code

    Poll getStatus every 5 seconds to check for codes.

    action=getStatus&id=NV8Q2K7
    > STATUS_OK:48215
  4. Step 4

    Finish

    Once you have entered the code, finish with setStatus 6. If no code arrives within 20 minutes, the number is refunded automatically.

    action=setStatus&id=NV8Q2K7&status=6
    > ACCESS_ACTIVATION

Examples by language

The full flow from getting a number to receiving the code. Switch tabs to change the programming language.

import time, requests

BASE = "https://nuviosms.com/stubs/handler_api.php"
KEY = "API_KEY"

def call(**p):
    return requests.get(BASE, params={"api_key": KEY, **p}, timeout=30).text

r = call(action="getNumber", service="telegram", country="gb")
if not r.startswith("ACCESS_NUMBER"):
    raise SystemExit(r)
_, num_id, phone = r.split(":")
print("Number:", phone)

for _ in range(240):                      # 20 minutes
    s = call(action="getStatus", id=num_id)
    if s.startswith("STATUS_OK"):
        print("Code:", s.split(":")[1])
        call(action="setStatus", id=num_id, status=6)
        break
    time.sleep(5)

API FAQs

Access 1,255 services in 145 countries via API at same prices as web.

What is SMS verification API?
This feature allows you to purchase virtual numbers, verify authentication codes, and cancel via HTTP requests in your program. The NuvioSMS API follows the widely-used handler_api method in the industry.
Can I use the same programs from other SMS verification sites?
For handler_api systems, just update the base URL and API key.
Is there a separate API fee?
None. API and web interface use the same credit system and pricing.
How many requests can I send?
Each API key allows 300 requests per minute. Exceeding this returns TOO_MANY_REQUESTS without deducting credit.
Can numbers bought via API be refunded?
Yes. If no code arrives within 20 minutes, numbers purchased via API are automatically refunded as credit.
Where do I create an API key?
Create it in the API menu after logging into your account. Keys are shown only once upon creation - save it immediately.

Create an API key and connect right away

After signing up and topping up credit, create your API key directly in the account screen.