otpwatch handler_api.php recipes
Get API key

Will your bot run on this API? Paste the code

The check reads your config or client code in this tab, finds the base URL, every action= and the parameters around it, and compares them with the public API docs. You get a verdict, line numbers and the list of parts that will break. Nothing leaves the page.

Get an API key Opens sign-up on SimAggregator, the marketplace this API belongs to. The key is issued in the dashboard, balance in USD.

Check your code

Runs in this tab. The page cannot send what you paste: its Content-Security-Policy has connect-src 'none', and nothing is stored. Leave keys out anyway; the check does not need them.

Paste the file that builds the request: the API client, the config with the base URL, or the .env. Several files at once work too; pick them together and the verdict covers all of them. Keys are not needed, so cut them out before you paste.

What the verdicts mean

VerdictWhen
One lineOne base URL, set in one place, and every method, parameter and code found is in the docs. Change the URL and the key.
Changes in N placesNothing breaks, but N places need an edit: the base URL written more than once, parameters the docs do not list, setStatus values other than 3, 6 and 8, POST instead of GET.
Needs changesNothing known to break, but something could not be confirmed: the base URL is not in the text, a country id or service code is not among the documented ones, or the file talks to several providers.
Don't migrate as isThe code calls something the API does not have. That part will break; the list says which.

The check reads text. It does not follow imports or run anything, so a call built somewhere else is invisible to it. When in doubt it says "needs changes", never "one line".

Methods in the docs

From the public API docs at sim-aggregator.org/en/docs/api, read on 24 November 2026. One endpoint, https://sim-aggregator.org/stubs/handler_api.php, GET requests only; every method takes action and api_key.

MethodOther parametersReply
getPricescountry, service, both optionalJSON: country → service → cost, count
getCountriesnoneJSON by id: id, rus, eng, chn (the two-letter ISO code), visible, retry, rent, multiService
getServicesListcountry, optionalJSON: status, services with code and name
getBalancenoneACCESS_BALANCE:<amount>
getNumbercountry, service; optional duration (activation, d1, d3, d7), maxPrice and a software identifierACCESS_NUMBER:<id>:<number>
getNumberV2same as getNumberJSON: activationId, phoneNumber, activationCost, currency, countryCode, canGetAnotherSms, activationTime (UTC), activationOperator; refusals stay plain text
getStatusidSTATUS_WAIT_CODE, STATUS_OK:<code>, STATUS_WAIT_RETRY:<code>, STATUS_CANCEL, NO_ACTIVATION
getCurrentActivationsListnonea flat JSON array of numberid, number, status; [] when nothing is open
setStatusid, status: 3, 6 or 8ACCESS_RETRY_GET, ACCESS_ACTIVATION, ACCESS_CANCEL, EARLY_CANCEL_DENIED, BAD_STATUS

Limits from the same page: 600 requests per minute per key, and status polling once every 2 to 5 seconds per activation. An unknown method name answers BAD_ACTION. Full reply lists are on the reference page and the error codes page.

This part will break

Code that relies on any of these needs a rewrite of that part, not a new URL:

  • Rent methods: getRentNumber, getRentStatus, setRentStatus, getRentList, getRentServicesAndCountries, continueRentNumber and the rent_time parameter. Rentals here are getNumber with duration=d1, d3 or d7; the rental page has the flow.
  • getFullSms: getStatus returns the code at the end of STATUS_OK:<code>, not the full message text.
  • Multi-service orders: getMultiServiceNumber and the multiService parameter. getNumber takes one service code per order.
  • Every other method missing from the table, for example getNumbersStatus, getActiveActivations, getStatusV2, getTopCountriesByService, getOperators. Stock per pair comes from getPrices (count), the open orders from getCurrentActivationsList.

Smaller things the check counts as edits: parameters the docs do not list (operator, forward, ref, phoneException and similar; max_price is spelled maxPrice), setStatus with 1 or -1, and POST requests.

Country and service codes

When the code has literal values such as country=16 or service: "tg", the check compares them with the ten country ids and ten service codes named in the docs, and marks the documented pairs that are listed in the latest daily snapshot. Anything else is not wrong by default, only unconfirmed: ids can mean a different country on another provider, so look them up with getCountries and getServicesList before you rely on them. The country ids and service codes pages list the documented ones.

How the check runs

The analyzer is one script served from this site. The page's Content-Security-Policy sets connect-src 'none', so the browser blocks any request the script could make; files are read with the browser's FileReader and nothing is stored. There is nothing to install or download: the same check works offline once the page is open.

After the check

  1. Fix what the list says, in a branch.
  2. Move the base URL and key to configuration (SMS_API_BASE_URL, SMS_API_KEY) if they are not there yet.
  3. Run the five staging calls from Migrate by base URL on a separate key before production traffic moves.

ready to run it?

Fix what the check lists, issue a key named staging, then flip the base URL.

Get an API key

Install for your coding agent

terminal
# Agent skills index: https://otpwatch.com/.well-known/agent-skills/index.json
npx skills add https://otpwatch.com

Two skills: receiving an SMS code in your own app or test, and building a bot that sells numbers. Index: /.well-known/agent-skills/index.json

Updated · prices from the 24 Nov 2026 snapshot