Reseller API
Make your API key in Panel → API. Send it in the X-Api-Key header. All answers are JSON with ok true/false. All money is in US dollars (USD).
| Method | URL | What |
|---|---|---|
| GET | https://number.joggotabd.com/api/v1/balance | Your balance |
| GET | https://number.joggotabd.com/api/v1/services | Every service + country with the lowest price |
| POST | https://number.joggotabd.com/api/v1/buy | service (e.g. whatsapp), country (e.g. BD), optional max_price |
| GET | https://number.joggotabd.com/api/v1/orders/{id} | Status, SMS and code. Call every 5 seconds. |
| POST | https://number.joggotabd.com/api/v1/orders/{id}/cancel | Cancel (refund) if no SMS came |
| POST | https://number.joggotabd.com/api/v1/orders/{id}/finish | Close after you got the code |
Example
curl -X POST https://number.joggotabd.com/api/v1/buy -H "X-Api-Key: nk_your_key" -d service=whatsapp -d country=BD
{"ok":true,"order":{"id":"K3J9QX2LMA","phone":"+14155550123","price":0.45,"status":"waiting","seconds_left":1200,"sms":[]}}
curl https://number.joggotabd.com/api/v1/orders/K3J9QX2LMA -H "X-Api-Key: nk_your_key"
{"ok":true,"order":{"id":"K3J9QX2LMA","status":"received","sms":[{"code":"482913","text":"Your WhatsApp code 482-913"}]}}
Status: waiting → received → completed; or cancelled / expired (refunded).