# 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.

Source: https://otpwatch.com/compat-check
Updated: 2026-11-24
API key: https://otpwatch.com/agent/key

## Check your code

The checker runs in the browser at https://otpwatch.com/compat-check: paste a config or the file that calls handler_api.php, and it lists what works as is, what to change and what will break, with line numbers.

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

| Verdict | When |
|---|---|
| One line | One 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 places | Nothing 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 changes | Nothing 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 is | The 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`.

| Method | Other parameters | Reply |
|---|---|---|
| `getPrices` | `country`, `service`, both optional | JSON: country → service → `cost`, `count` |
| `getCountries` | none | JSON by id: `id`, `rus`, `eng`, `chn` (the two-letter ISO code), `visible`, `retry`, `rent`, `multiService` |
| `getServicesList` | `country`, optional | JSON: `status`, `services` with `code` and `name` |
| `getBalance` | none | `ACCESS_BALANCE:<amount>` |
| `getNumber` | `country`, `service`; optional `duration` (`activation`, `d1`, `d3`, `d7`), `maxPrice` and a software identifier | `ACCESS_NUMBER:<id>:<number>` |
| `getNumberV2` | same as `getNumber` | JSON: `activationId`, `phoneNumber`, `activationCost`, `currency`, `countryCode`, `canGetAnotherSms`, `activationTime` (UTC), `activationOperator`; refusals stay plain text |
| `getStatus` | `id` | `STATUS_WAIT_CODE`, `STATUS_OK:<code>`, `STATUS_WAIT_RETRY:<code>`, `STATUS_CANCEL`, `NO_ACTIVATION` |
| `getCurrentActivationsList` | none | a flat JSON array of `numberid`, `number`, `status`; `[]` when nothing is open |
| `setStatus` | `id`, `status`: 3, 6 or 8 | `ACCESS_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](https://otpwatch.com/handler-api.md) and the [error codes](https://otpwatch.com/error-codes.md) 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](https://otpwatch.com/rent-number-api.md) 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](https://otpwatch.com/country-ids.md) and [service codes](https://otpwatch.com/service-codes.md) 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.

> **Your bot or panel sells numbers to other people?**
The platform runs a software program for bots, panels and test services that order numbers for their users. How it works: [For software owners](https://otpwatch.com/software-program.md). Sign-up is on the [partner portal](https://otpwatch.com/agent/partner).

## 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](https://otpwatch.com/migrate-base-url.md) on a separate key before production traffic moves.
