For developers

API NOMEROK

REST + JSON. Amounts are in kopecks (1800 = 18,00 UAH). Your key is in the dashboard, “API” section.

Authorization

Authorization: Bearer nk_live_xxxxxxxxxxxxxxxx

Limit — 60 requests per minute per key. Errors are returned with HTTP code 4xx and the body { "error": "NO_BALANCE", "message": "…" }.

Methods

GET/api/v1/balance

Account balance

{ "balance": 125050, "currency": "UAH" }
GET/api/v1/services

Service list

[{ "code": "telegram", "name": "Telegram" }, …]
GET/api/v1/prices?service=telegram

Prices and availability by country

[{ "country": "UA", "price": 1800, "stock": 1430, "success": 0.94 }, …]
POST/api/v1/orders

Buy a number

{ "service": "telegram", "country": "UA", "mode": "sms", "max_price": 2500 }
{ "id": "ord_x1y2", "phone": "380931234567", "price": 1800, "status": "waiting", "codes": [], "expires_at": 1767… }
GET/api/v1/orders/:id

Order status and codes

{ "id": "ord_x1y2", "status": "received", "codes": [{ "code": "482913", "at": 1767… }] }
POST/api/v1/orders/:id/cancel

Cancel (if no SMS has arrived yet) — funds are refunded

{ "status": "cancelled" }
POST/api/v1/orders/:id/again

Request another SMS on the same number

{ "status": "received" }
POST/api/v1/orders/:id/finish

Complete activation

{ "status": "finished" }

Order statuses

waiting — waiting for SMS · received — code received · finished — completed · cancelled / refunded — cancelled, funds refunded.

The number is active for 20 minutes. If no code arrives, the order closes automatically and the money is refunded.

handler_api.php compatibility

Existing software that works with the SMS-Activate protocol connects without code changes: just use the address

https://nomerok.com.ua/stubs/handler_api.php?api_key=ВАШ_КЛЮЧ&action=getNumber&service=tg&country=1

Supported actions getBalance, getNumber, getStatus, setStatus (3, 6, 8), getPrices.

The NOMEROK SMS activation API lets a script, bot or test suite do what you’d otherwise do by hand in the dashboard: check the balance and prices, order a virtual number for a service and country, poll for the SMS code, ask for another code, and finish or cancel. It’s a REST API with JSON responses, and there’s also a handler_api.php endpoint for software built for the SMS-Activate protocol.

Below: what the API is for and what it isn’t, authentication and limits, the endpoints, the order lifecycle and statuses, the compatible protocol, how money and refunds work, and practical advice for QA and automation.

What the API is for, and what it isn’t

The API is for receiving verification texts on virtual numbers. Typical uses:

  • QA and end-to-end tests. Check your own app’s phone sign-up with real mobile numbers from different countries before each release.
  • Internal tools. A support or operations team that regularly needs codes for test or company accounts gets them without logging in to the dashboard.
  • Existing software. Programs and scripts that already speak the SMS-Activate protocol can switch providers by changing the base URL and key.

It is not an API for sending one-time passwords to your own customers. If you’re looking for an “SMS verification API” to text codes to your users, you need an SMS gateway or a verification provider such as Twilio Verify, Vonage or a similar service. And it isn’t for mass registrations, spam or fraud, which our acceptable use policy forbids.

Authentication, format and limits

Create a key in your dashboard, in the API section, after you sign up. Send it with every request in the Authorization header as a bearer token: Authorization: Bearer nk_live_…. Keep the key server-side; anyone with it can spend your balance.

  • Format: JSON requests and responses over HTTPS.
  • Rate limit: 60 requests per minute per key. That’s plenty for normal use if you don’t poll faster than every few seconds.
  • Errors: an HTTP 4xx status with a body like { "error": "NO_BALANCE", "message": "…" }. Branch on the error code, not on the message text.
  • Money: amounts are integers in kopiyky, hundredths of a Ukrainian hryvnia: 1800 means 18.00 UAH. The English site shows approximate dollar prices, but the API works in UAH.

Endpoints

Method and pathWhat it does
GET /api/v1/balanceAccount balance and currency
GET /api/v1/servicesList of services with their codes, such as telegram
GET /api/v1/prices?service=telegramPrice, stock and delivery rate by country for a service
POST /api/v1/ordersBuy a number: service, country, mode and an optional max_price
GET /api/v1/orders/:idOrder status and any codes received
POST /api/v1/orders/:id/cancelCancel if no SMS has arrived yet; the money is refunded
POST /api/v1/orders/:id/againAsk for one more SMS on the same number
POST /api/v1/orders/:id/finishClose the activation once you’re done

An order request looks like { "service": "telegram", "country": "UA", "mode": "sms", "max_price": 2500 }. The response returns the order id, the number in international format without the plus, the price, the status and an expiry time. Request and response examples are shown under each method on this page.

Order lifecycle

After you order, the number is reserved for you alone and waits 20 minutes for a text. Poll the order every few seconds; once a code arrives, it appears in the codes array with a timestamp. If the target app needs a second code, call again: repeat codes are free while the activation is open. When you’re done, call finish.

If no SMS arrives, you don’t need a separate refund request: the order closes on its own after 20 minutes and the money goes back to your balance. You can also cancel earlier, as long as no SMS has arrived yet.

One activation through the API
  1. 1Pricespick a country with stock and an acceptable price
  2. 2OrderPOST with service, country and max_price
  3. 3Enter the numberyour test or tool types it into the target app
  4. 4PollGET the order every few seconds until codes appear
  5. 5Finish or cancelfinish when done; cancel if nothing came

Order statuses

Status over the life of an order
  1. waitingnumber issued, no SMS yet
  2. receivedat least one code arrived
  3. finishedyou closed the activation
  4. cancelled / refundedcancelled by you or closed after 20 minutes without a code, money returned
StatusMeaningWhat your code should do
waitingWaiting for the SMSKeep polling; give up and cancel if your own timeout passes
receivedA code has arrivedRead the latest item in codes, then finish or request again
finishedClosed by youStop polling
cancelled / refundedCancelled, money returnedOrder a new number, perhaps from another country

handler_api.php compatibility

Plenty of existing software, from registration tools to QA scripts, talks to SMS activation services through the handler_api.php protocol popularised by SMS-Activate. NOMEROK accepts that protocol at /stubs/handler_api.php on our domain, with your key in the api_key parameter, and answers with the familiar text responses. In many tools, switching means changing the base URL and the key.

ActionWhat it doesTypical responses
getBalanceAccount balanceACCESS_BALANCE:amount in UAH
getNumberBuy a number for a service and country, optionally with maxPriceACCESS_NUMBER:id:number, NO_NUMBERS, NO_BALANCE
getStatusActivation statusSTATUS_WAIT_CODE, STATUS_WAIT_RETRY, STATUS_OK:code, STATUS_CANCEL
setStatus=3Request one more SMSACCESS_RETRY_GET
setStatus=6Finish the activationACCESS_ACTIVATION
setStatus=8Cancel, money refundedACCESS_CANCEL
getPricesPrices and number countsJSON: country → service → cost, count

NOMEROK is a separate service and isn’t affiliated with SMS-Activate; see our SMS-Activate alternative page for a fuller comparison and migration notes.

Before you switch existing software

Migration checklist
  • API key created in the dashboard and stored server-side
  • Base URL pointed at /stubs/handler_api.php
  • Service and country codes checked for the services you use
  • maxPrice converted to UAH
  • A few manual activations tested before full automation
  • Retry and cancel handling verified
  • Currency. Balance, prices and maxPrice are in UAH. If your software had a price cap in dollars or another currency, convert it.
  • Service and country codes. Common short codes such as tg are supported, but check rare services against the documentation.
  • Auto-cancel. A failed activation closes after 20 minutes and refunds itself, so you don’t need extra refund logic.
  • Polling. Respect the 60-requests-per-minute limit; one status check every few seconds per order is enough.

Run a few activations manually first, then switch on automation and watch how your software handles repeat codes and cancellations.

Prices, stock and choosing a country

Prices depend on the service and country pair, change with supplier stock during the day, and are the same as in the dashboard. Call the prices endpoint before ordering and pass max_price so your script never pays more than you planned. The delivery rate in the response helps you pick countries where codes for that service arrive most reliably.

You can see the same data without code in the price table and on each service page in the catalogue. For services that aren’t listed, order Other, which accepts a text from any sender.

Paying for API usage

The API spends the same balance as the dashboard; there’s no separate API plan or monthly fee. Top up by card from any bank, Apple Pay, Google Pay or crypto, with a minimum top-up of 100 UAH. You pay only for activations: an order that never receives a code is refunded automatically.

Numbers bought through the API are the same real mobile numbers as in the dashboard, issued to one customer at a time. For accounts you’ll keep and log back into, a single 20-minute activation isn’t enough: use a rented number instead.

Good practice for automation

  • Keep keys secret. Never ship the key in a mobile app or front-end code; call the API from your backend or CI.
  • Handle NO_NUMBERS and NO_BALANCE. Fall back to another country or alert a human rather than retrying in a tight loop.
  • Use your own timeout. If your test can’t wait 20 minutes, cancel after your limit; the money comes back if no SMS arrived.
  • Log order ids. When you contact support, the id lets us find the activation quickly.
  • Don’t mix test and production accounts on the same numbers; it makes recovery and audits harder.

For tests that also need a specific IP country, pair numbers with proxies so the number, IP and locale match.

FAQ

Is there an API for receiving SMS on virtual numbers?
Yes. The NOMEROK API lets your code order a number, poll for the SMS code, request another code and finish or cancel the activation.
Can I use this API to send verification codes to my users?
No. It receives texts on virtual numbers. To send one-time passwords to your customers, use an SMS gateway or a verification service.
Is the API compatible with SMS-Activate software?
Yes, through the handler_api.php endpoint with getBalance, getNumber, getStatus, setStatus (3, 6, 8) and getPrices. NOMEROK is a separate service, not affiliated with SMS-Activate.
How do I get an API key?
Sign up, then create a key in the API section of your dashboard. Send it as a bearer token in the Authorization header.
What is the rate limit?
60 requests per minute per key. Poll order status every few seconds rather than continuously.
What currency does the API use?
Ukrainian hryvnia. REST amounts are integers in kopiyky, so 1800 means 18.00 UAH; handler_api.php returns amounts in UAH.
What happens if no SMS arrives?
The order closes after 20 minutes and the money returns to your balance automatically. You can also cancel earlier if no SMS has arrived.
Are repeat codes charged?
No. While the activation is open, extra codes from the same service are free.
Does the API cost extra?
No. There’s no subscription; you pay only for activations, from the same balance as the dashboard.
Can I order numbers for services not in the catalogue?
Yes, order Other: the number accepts a text from any sender.