SMS verification API: how to receive OTP codes from code

An SMS verification API lets your software do what a person does on the Mane SMS website: rent a phone number for a service such as WhatsApp or Telegram, wait for the one-time code (OTP) to arrive, and close the order. Bots, account tools and reseller websites use it to verify accounts without anyone clicking through the dashboard.

You only need three calls. getNumber rents a number and returns an activation id and the phone number. getStatus, called every few seconds, returns STATUS_WAIT_CODE until the SMS arrives and then STATUS_OK followed by the code. setStatus closes the activation: 6 when you are done, 3 to ask for another SMS, or 8 to cancel and get your money back.

Instead of polling getStatus, you can save an HTTPS webhook in Cabinet → API & Security. Mane SMS then POSTs each code to your server the moment it arrives, signed with HMAC-SHA256 so you can check it really came from us, and retries if your server does not answer.

Cost control matters at volume. Pass maxPrice to cap what any single number may cost, or pick an exact price tier from getPricesV2 when you want better delivery. If no SMS arrives before the number expires, the order is refunded to your balance automatically, so you never pay for a code you did not receive.

To start, create a free account, copy your key from Cabinet → API & Security and follow the examples on the SMS API page (manesms.com/sms-api), with ready-to-run code in cURL, Python, Node.js and PHP.