API voor sms-ontvangst

Koop nummers en lees verificatiecodes uit via een JSON-API. Zonder identiteitscontrole, betaling met cryptovaluta.

REST · JSONOpenAPI 3.1 OpenAPI-specificatie →

Elke bewerking hier is tegelijk een MCP-tool. De REST-endpoints zijn de vertaling van dezelfde tools die de MCP-server aanbiedt, dus een autonome agent en een gewone integratie gedragen zich gelijk. Richt u een AI-agent op OTPDrop, begin dan bij het gedeelte voor agents.

Hoe is de API opgebouwd?

  1. Maak een account aan en bewaar de teruggegeven zin. Hij is de enige toegang en is niet te resetten.
  2. Maak een opwaardering aan, stuur cryptovaluta en wacht op de bijschrijving.
  3. Koop een nummer voor de gewenste dienst en het gewenste land — het saldo wordt direct belast.
  4. Vraag de sms met de code op. Komt er voor het verlopen van de bestelling geen code, dan wordt automatisch terugbetaald.

Eenmaal opwaarderen, vaak kopen: één opwaardering volstaat voor zoveel nummers als het saldo toelaat, dus alleen de eerste aankoop wacht op een bevestiging.

Authenticatie

Geef de accountzin door als bearertoken. Er is geen aparte API-sleutel en geen login-aanroep — de zin is de toegangsbevoegdheid.

Authorization: Bearer YOUR-SEED-PHRASE

De catalogus-endpoints hebben helemaal geen authenticatie nodig, dus diensten, landen en prijzen kunt u al bekijken voordat er een account bestaat. Alles rond geld en bestellingen vraagt de header.

De zin is niet te herstellen. Wij bewaren alleen zijn hash. Raakt hij kwijt, dan zijn het account en het saldo weg — zonder reset en zonder omweg via de support.

Basisadres

Alle endpoints zijn relatief ten opzichte van:

https://otpdrop.com/api/v1

Antwoorden komen als JSON. POST-bodies worden aanvaard als application/json of application/x-www-form-urlencoded.

Fouten

Bij een mislukking komt er een status buiten 2xx terug en één enkel foutobject.

{
  "error": {
    "code": "invalid_request",
    "message": "unknown service: \"whatsap\""
  }
}
StatusBetekenis
200Gelukt
201Aangemaakt — account, opwaardering of bestelling bestaat nu
401Zin in de Authorization-header ontbreekt of is onjuist
422Aanvraag begrepen, maar niet uitvoerbaar
500Fout aan onze kant

Veelvoorkomende meldingen bij 422:

MeldingOorzaak
insufficient_fundsSaldo onder de prijs — maak eerst een opwaardering aan
unknown serviceDeze dienstcode bestaat niet; zie de dienstenlijst
unknown countryDeze landcode bestaat niet; zie de landenlijst
unknown coinValuta wordt niet aangenomen; zie het opwaardeer-endpoint
amount_usd must be between…Opwaarderingen zijn beperkt tot $25–$1000

Zijn er snelheidslimieten?

Er is geen gepubliceerd quotum en ook geen API-sleutel die te knijpen valt — maar endpoints in een lus aanroepen is niet gratis. Twee daarvan zijn bedoeld om te pollen en vragen bijzondere zorg.

EndpointVerstandig tempoWaarom
Catalogus en prijsopvraagZelf cachenPrijzen veranderen zelden; de catalogus bij elke aanvraag opnieuw ophalen levert niets op.
/topups/{id}Elke 10–15 secondenEen netwerkbevestiging duurt minuten, geen milliseconden. Vaker pollen weet niets eerder.
/orders/{id}/smsElke 3–5 secondenCodes komen meestal binnen seconden; een strakkere lus levert alleen belasting op.
AankoopNaar behoefteElke aankoop schrijft echt geld af, dus een ongeremde lus kost u meer dan ons.

Verkeer dat op een aanval lijkt, wordt bovenstrooms geblokkeerd, zonder beleefde 429. Hebt u een gegronde reden om vaker te pollen, schrijf ons dan vooraf via de contactpagina.

Diensten opsommen

GET/api/v1/services

Alle diensten met code, categorie en minimumprijs. Geen authenticatie nodig.

Aanvraag

curl -s https://otpdrop.com/api/v1/services

Antwoord

{
  "services": [
    {
      "code": "binance",
      "name": "Binance",
      "category": "Finance",
      "from_price_cents": 85,
      "color": "#F0B90B",
      "icon": "binance"
    }
  ],
  "count": 133
}

Landen opsommen

GET/api/v1/countries

Every country with its dial code and how many services are available there. No authentication required.

Aanvraag

curl -s https://otpdrop.com/api/v1/countries

Antwoord

{
  "countries": [
    {
      "code": "us",
      "name": "United States",
      "dial_code": "+1",
      "service_count": 133
    }
  ],
  "count": 197
}

Prijsmatrix

GET/api/v1/catalog

The most useful service and country combinations with their prices, cheapest first. No authentication required.

Parameters

NaamTypeBeschrijving
limitintegeroptioneelHow many rows to return, 1 to 500. Defaults to 12.

Aanvraag

curl -s 'https://otpdrop.com/api/v1/catalog?limit=2'

Antwoord

{
  "items": [
    {
      "service": "badoo",
      "country": "us",
      "price_cents": 35
    }
  ],
  "count": 2
}

Prijs opvragen

GET/api/v1/quote

The exact price for one service and country before you commit to buying. No authentication required.

Parameters

NaamTypeBeschrijving
servicestringverplichtService code, e.g. telegram
countrystringverplichtCountry code, e.g. us

Aanvraag

curl -s 'https://otpdrop.com/api/v1/quote?service=telegram&country=us'

Antwoord

{
  "service": "telegram",
  "country": "us",
  "price_cents": 111,
  "price_usd": "1.11",
  "currency": "USD",
  "purchasable": true
}

Account aanmaken

POST/api/v1/accounts

Generates an account and returns its seed. This is the only time the seed is ever shown. No authentication required.

Aanvraag

curl -s -X POST https://otpdrop.com/api/v1/accounts

Antwoord

{
  "public_id": "acc_7f3c1a92",
  "seed": "PABh-ZbRt-9xKm-Lq4V",
  "seed_prefix": "PABh",
  "balance_cents": 0,
  "warning": "This seed is shown exactly once, right now..."
}

Opwaardering aanmaken

POST/api/v1/topups

Claims a deposit address and returns the exact amount to send, as coin_amount, at the rate in rate_usd. Each top-up gets its own address, and it expires at expires_at. Send only the named coin, on the named network, before then.

Parameters

NaamTypeBeschrijving
amount_usdnumberverplichtHow much to add to the balance, in USD. Minimum 25, maximum 1000.
coinstringverplichtBTC, LTC, ETH, XMR, SOL, TRX, BNB, USDT, USDC and more

Aanvraag

curl -s -X POST https://otpdrop.com/api/v1/topups \
  -H 'Authorization: Bearer YOUR-SEED' \
  -H 'content-type: application/json' \
  -d '{"amount_usd": 25, "coin": "XMR"}'

Antwoord

{
  "topup_id": "top_019195919c80fc8f",
  "status": "awaiting_payment",
  "coin": "XMR",
  "address": "89Rm4XN39m9PCr8Sr3yAFnXvLRRWQVEE...",
  "amount_cents": 2500,
  "amount_usd": "25.00",
  "coin_amount": "0.1337",
  "rate_usd": 187.02,
  "bonus_cents": 0,
  "credited_total_cents": 2500,
  "expires_at": 1788532810
}

Status van een opwaardering

GET/api/v1/topups/{id}

Whether a deposit has been credited. Confirmation is not instant — poll this rather than assuming the funds arrived.

Parameters

NaamTypeBeschrijving
idstringverplichtThe top-up id, in the path

Aanvraag

curl -s https://otpdrop.com/api/v1/topups/top_019195919c80fc8f \
  -H 'Authorization: Bearer YOUR-SEED'

Antwoord

{
  "topup_id": "top_019195919c80fc8f",
  "status": "credited",
  "coin": "XMR",
  "amount_usd": "25.00",
  "coin_amount": "0.1337",
  "credited_total_cents": 2500,
  "expires_at": 1788532810
}

Nummer kopen

POST/api/v1/orders

Debits the balance and issues a number immediately. There is no per-purchase address and no second wait. Fails with insufficient_funds if the balance is short.

Parameters

NaamTypeBeschrijving
servicestringverplichtService code, e.g. telegram
countrystringverplichtCountry code, e.g. us

Aanvraag

curl -s -X POST https://otpdrop.com/api/v1/orders \
  -H 'Authorization: Bearer YOUR-SEED' \
  -H 'content-type: application/json' \
  -d '{"service": "telegram", "country": "us"}'

Antwoord

{
  "order_id": "ord_1ad450bf7a42519c",
  "service": "telegram",
  "country": "us",
  "phone": "+15558329008",
  "status": "paid",
  "price_usd": "1.11"
}

Eigen bestellingen opsommen

GET/api/v1/orders

Every order on the account, newest first, with status, number and price. Useful for reconciling state after a restart rather than for polling.

Aanvraag

curl -s https://otpdrop.com/api/v1/orders \
  -H 'Authorization: Bearer YOUR-SEED'

Antwoord

{
  "orders": [
    {
      "order_id": "ord_1ad450bf7a42519c",
      "service": "telegram",
      "country": "us",
      "phone": "+15558329008",
      "status": "paid",
      "price_usd": "1.11"
    }
  ],
  "count": 1
}

Bestelling ophalen

GET/api/v1/orders/{id}

The current state of one order: its number, status and price.

Parameters

NaamTypeBeschrijving
idstringverplichtThe order id, in the path

Aanvraag

curl -s https://otpdrop.com/api/v1/orders/ord_1ad450bf7a42519c \
  -H 'Authorization: Bearer YOUR-SEED'

Antwoord

{
  "order_id": "ord_1ad450bf7a42519c",
  "service": "telegram",
  "country": "us",
  "phone": "+15558329008",
  "status": "paid",
  "price_usd": "1.11"
}

Sms met de code ophalen

GET/api/v1/orders/{id}/sms

Poll this until arrived turns true. If the order expires with nothing delivered, the price returns to your balance automatically.

Parameters

NaamTypeBeschrijving
idstringverplichtThe order id, in the path

Aanvraag

curl -s https://otpdrop.com/api/v1/orders/ord_1ad450bf7a42519c/sms \
  -H 'Authorization: Bearer YOUR-SEED'

Antwoord

{
  "order_id": "ord_1ad450bf7a42519c",
  "status": "paid",
  "arrived": false,
  "code": null
}

Hoe ziet een afgeronde integratie eruit?

Van account tot code zijn het zes aanroepen. Alles hieronder is echt: plakken en uitvoeren.

# 1. Account aanmaken en de zin bewaren
SEED=$(curl -s -X POST https://otpdrop.com/api/v1/accounts | jq -r .seed)

# 2. Opwaarderen — stuur coin_amount naar het teruggegeven adres
curl -s -X POST https://otpdrop.com/api/v1/topups \
  -H "Authorization: Bearer \$SEED" \
  -H 'content-type: application/json' \
  -d '{"amount_usd": 25, "coin": "USDT"}'

# 3. Pollen tot de opwaardering is bijgeschreven
curl -s https://otpdrop.com/api/v1/topups/TOPUP_ID \
  -H "Authorization: Bearer \$SEED" | jq .status

# 4. Vóór de aankoop de prijs controleren
curl -s 'https://otpdrop.com/api/v1/quote?service=telegram&country=us'

# 5. Kopen — er wordt afgeschreven, het nummer komt direct
ORDER=$(curl -s -X POST https://otpdrop.com/api/v1/orders \
  -H "Authorization: Bearer \$SEED" \
  -H 'content-type: application/json' \
  -d '{"service": "telegram", "country": "us"}' | jq -r .order_id)

# 6. De code opvragen
until curl -s https://otpdrop.com/api/v1/orders/\$ORDER/sms \
  -H "Authorization: Bearer \$SEED" | jq -e .code; do sleep 4; done

Dezelfde reeks in Python, zonder shell:

import time, requests

API = "https://otpdrop.com/api/v1"
seed = requests.post(f"{API}/accounts").json()["seed"]
auth = {"Authorization": f"Bearer {seed}"}

topup = requests.post(f"{API}/topups", headers=auth,
                      json={"amount_usd": 25, "coin": "USDT"}).json()
print("send", topup["coin_amount"], topup["coin"], "to", topup["address"])

while requests.get(f"{API}/topups/{topup['topup_id']}",
                   headers=auth).json()["status"] != "credited":
    time.sleep(15)

order = requests.post(f"{API}/orders", headers=auth,
                      json={"service": "telegram", "country": "us"}).json()
print("number:", order["phone"])

while True:
    sms = requests.get(f"{API}/orders/{order['order_id']}/sms",
                       headers=auth).json()
    if sms["arrived"]:
        print("code:", sms["code"])
        break
    time.sleep(4)

MCP-server

Dezelfde bewerkingen bestaan via het Model Context Protocol op https://otpdrop.com/mcp — als elf tools. Zo voegt u hem toe aan Claude Code:

claude mcp add --transport http otpdrop https://otpdrop.com/mcp

Het instellen en de volledige toollijst staan op de pagina voor agents.

Beschrijvingsbestanden

Machineleesbare beschrijvingen van de dienst, alle op te vragen zonder authenticatie.

BestandInhoud
/openapi.jsonHet volledige OpenAPI 3.1-schema
/.well-known/agent.jsonMogelijkheden, authenticatiemodel en gebruiksregels
/llms.txtEen korte oriëntatie voor taalmodellen
/llms-full.txtHetzelfde, met de volledige catalogus erbij

Veelgestelde vragen

Heeft de API van OTPDrop een sleutel nodig?

Nee. Er valt niets aan te vragen en er is geen goedkeuring. De inloggegevens zijn de accountzin, doorgegeven als bearertoken — en de catalogus-endpoints hebben zelfs die niet nodig.

Wat kost de API van OTPDrop?

Niets bovenop de nummers. Geen abonnement, geen afrekening per aanroep, geen minimumvolume — dezelfde prijzen gelden als op de website.

Met welke programmeertalen werkt de API?

Met elke taal die een HTTPS-aanvraag kan doen. Het is gewone JSON over HTTP met een bearerheader: geen SDK te installeren en niets af te stemmen op onze releases.

Wat gebeurt er als de sms met de code niet aankomt?

De bestelling betaalt zichzelf bij het verlopen terug op het saldo; eerder annuleren kan via de website. U betaalt voor geleverde codes, niet voor pogingen.

Zijn de REST-API en de MCP-server hetzelfde?

Ja, met opzet. Elk REST-endpoint is de vertaling van een MCP-toolaanroep, dus zij kunnen niet uiteenlopen: het een wijzigen betekent beide wijzigen. Neem wat uw client het beste past.

Kunt u de API testen zonder iets uit te geven?

Catalogus, prijsopvraag en het aanmaken van een account zijn gratis, dus het grootste deel van een integratie kunt u schrijven en controleren vóór enige opwaardering. Alleen de aankoop kost geld.