otpwatch handler_api.php recipes
Get API key

Service codes for the service parameter

The service code tells the platform which sender's SMS your order is waiting for: tg for Telegram, wa for WhatsApp, dr for OpenAI, acz for Claude. An order only receives messages from its own service, so a wrong code means a code that never shows up.

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

Documented codes

The ten codes named in the public API docs, with the lowest current "from" price for each across all countries in stock.

CodeServiceFromCheapest country
waWhatsApp$0.1875Indonesia
tgTelegram$0.1875Indonesia
vkVK$0.025Indonesia
goGoogle$0.025Indonesia
fbFacebook$0.0125Indonesia
lfTikTok$0.0125Indonesia
igInstagramsee getPrices
dsDiscord$0.0125Indonesia
drOpenAI$0.025Argentina
aczClaude$0.0213United Kingdom

“From” price per one-off activation, USD, read from public SimAggregator pages on (UTC). Prices move; getPrices gives the live figure.

The storefront lists many more services than the docs table; getServicesList returns the full set of codes the API accepts.

Why the code has to match the sender

Numbers run on real SIM cards that belong to suppliers, and one SIM serves different services for different buyers at the same time. When an SMS lands, the platform hands it to the open order whose service matches the sender. That is why:

  • a Telegram order never shows a WhatsApp code, even on the same number;
  • one number never has two open orders that the same message could match, so codes do not leak between buyers;
  • if you picked the wrong code, the right SMS will not arrive in that order. Cancel it (repeat the cancel if it answers EARLY_CANCEL_DENIED) and order with the correct code.

Getting the full list

service-codes.mjs
// handler_api reference: https://otpwatch.com/service-codes
// Building a bot that resells numbers to other people? Software program: https://otpwatch.com/partner
const API = process.env.SMS_API_BASE_URL ?? "https://sim-aggregator.org/stubs/handler_api.php";

export async function serviceCodes(apiKey, country) {
  const q = new URLSearchParams({ action: "getServicesList", api_key: apiKey });
  if (country) q.set("country", String(country));   // only services sold in that country
  const body = await (await fetch(`${API}?${q}`)).text();
  if (!body.trim().startsWith("{")) throw new Error(`getServicesList: ${body}`);
  return new Map(JSON.parse(body).services.map((s) => [s.code, s.name]));
}

// (await serviceCodes(key, 16)).has("tg") -> true if Telegram is sold in the UK

Validate codes from config against this map at startup. BAD_SERVICE at order time is the same mistake found later and more expensively.

Per-service notes for testers

Telegram, tg

Telegram picks the delivery channel for a login code itself. If the account is already logged in somewhere, the code can arrive as a message inside the Telegram app on that session instead of an SMS; a fresh number with no sessions gets it by SMS (Telegram API docs on auth). For a test account on a rented number, log out other sessions before a test that expects an SMS.

If you are developing an MTProto client, Telegram's test servers accept test numbers of the form 99966XYYYY with a fixed login code, which covers protocol work without any SMS. A real number is for checks against the production servers: how messages render in the official apps, notifications, regional behaviour.

Prices for Telegram by country:

Countrycountry=From
IndonesiagetCountries$0.1875
PhilippinesgetCountries$0.2185
GeorgiagetCountries$0.69
ArgentinagetCountries$0.9524
Germany43$1.125
BulgariagetCountries$1.15

“From” price per one-off activation, USD, read from public SimAggregator pages on (UTC). Prices move; getPrices gives the live figure.

All Telegram countries on the storefront

WhatsApp, wa

WhatsApp often offers a voice call as an alternative to the SMS. For an SMS order, choose the SMS option in the app or flow under test.

Countrycountry=From
IndonesiagetCountries$0.1875
PhilippinesgetCountries$0.25
ArgentinagetCountries$0.35
GreecegetCountries$0.52
GeorgiagetCountries$0.82

“From” price per one-off activation, USD, read from public SimAggregator pages on (UTC). Prices move; getPrices gives the live figure.

Google go, OpenAI dr, Claude acz

The less obvious codes: go is Google, dr is OpenAI, acz is Claude. These are the codes to use when the flow under test links or creates an account on those platforms. Each platform runs its own checks on the number; receiving the SMS does not mean the platform accepts the sign-up.

Countrycountry=From
ArgentinagetCountries$0.025
IndonesiagetCountries$0.0375
Poland15$0.0375
MoldovagetCountries$0.0625
PhilippinesgetCountries$0.075

“From” price per one-off activation, USD, read from public SimAggregator pages on (UTC). Prices move; getPrices gives the live figure.

TikTok is lf

Not tt or tk, so it is easy to get wrong from memory. Validate it against getServicesList like every other code.

Countrycountry=From
IndonesiagetCountries$0.0125
PhilippinesgetCountries$0.0475
CzechiagetCountries$0.05
BulgariagetCountries$0.08

“From” price per one-off activation, USD, read from public SimAggregator pages on (UTC). Prices move; getPrices gives the live figure.

ready to run it?

Pull getServicesList once a day and validate codes before you order.

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