🎁 New here? Get +20% bonus on your first top-up — from just $2 (crypto or card).
🔥 Sale: 10% off every number · Buy now

SMS Verification API — Buy Numbers & Read OTP by API

Updated 18 Nov 2026 · OtpMango

An SMS verification API lets your software rent a number, wait for the code and read it — without a person in the loop. With OtpMango it's four calls: find the service, buy, poll the order, and report if no code came. Full reference: API docs.

1. Get a key

Create an account, add a little balance, and generate a key on the API page. Send it in the X-Api-Key header.

2. Find the service

curl -H "X-Api-Key: YOUR_KEY" "https://otpmango.com/api/v1/services?q=telegram"

3. Buy a number

curl -X POST -H "X-Api-Key: YOUR_KEY" -H "Content-Type: application/json"      -d '{"service_id": 123}' https://otpmango.com/api/v1/buy

4. Poll for the code

import time, requests
API, H = "https://otpmango.com/api/v1", {"X-Api-Key": "YOUR_KEY"}
order = requests.post(f"{API}/buy", json={"service_id": 123}, headers=H).json()["orders"][0]
while True:
    o = requests.get(f"{API}/order/{order['id']}", headers=H).json()["order"]
    if o["otp"]:
        print(o["otp"]); break
    if o["seconds_left"] == 0:
        requests.post(f"{API}/order/{order['id']}/report", headers=H); break
    time.sleep(6)

Tips

  • Poll every 5–10 seconds — faster doesn't make the SMS arrive sooner.
  • Use prefix on buy to choose an area code, and buy-multi for one number on several apps.
  • Resellers can get a discount on API prices — contact us.

Get your code in about a minute

Get a number

Numbers mentioned

More guides