KodeDrop API
Sell verification numbers from your own website, app or Telegram bot. You pay from your KodeDrop wallet in your account’s currency (naira, cedis, shillings or dollars), and you set your own price to your customers.
Start
- Create a KodeDrop account and add money to the wallet.
- On your numbers page, click Create API key. Copy it; it is shown once.
- Send the key with every request in the
Authorizationheader.
curl https://kodedrop.com/api/me \ -H "Authorization: Bearer kd_your_key"
Every reply is JSON. An error has an HTTP status of 400 or above and looks like {"error": "what went wrong"}. The limit is 120 requests a minute per key.
Buy a number and read the code
1. List services (the code, such as wa for WhatsApp, is what you send later).
GET /api/services
[{"code": "wa", "name": "Whatsapp"}, ...]
2. List countries, your price (in your account’s currency) and stock for a service.
GET /api/offers?service=wa
[{"country": 6, "name": "Indonesia", "price": 340, "count": 1200}, ...]
3. Buy. The price is taken from your wallet. If no number is available you are not charged.
POST /api/buy
Content-Type: application/json
{"service": "wa", "country": 6}
{"id": 41, "phone": "628123456789", "price": 340, "status": "waiting", "expiresAt": 1796231403951, ...}
4. Wait for the code. Ask every 5 seconds. status becomes done with the code, or refunded when no code came in about 20 minutes (the money is back in your wallet).
GET /api/orders
{"balance": 660, "orders": [{"id": 41, "status": "done", "code": "482193", ...}], ...}
5. Cancel a waiting number for a refund (the supplier allows this from two minutes after buying).
POST /api/cancel
Content-Type: application/json
{"id": 41}
Rent a number
GET /api/rent-offers?service=wa periods (hours), prices and stock
POST /api/rent {"service": "wa", "country": 6, "hours": 24}
GET /api/orders every SMS is in the order's "messages"
POST /api/renew-options {"id": 52}
POST /api/renew {"id": 52, "hours": 24}
Reseller prices
The API starts on the same prices as the website. Resellers with steady volume get a lower rate on their account: email support@kodedrop.com from your account address with your expected monthly numbers.
Keep your key secret and call the API from your server, never from a web page or app your customers can open. If a key leaks, click Replace API key on your numbers page and the old one stops working. Fraud, harassment and anything illegal are not allowed and get an account closed.