EDSOTP · Dokumentasi API v1https://edsotp.my.idAuthorization: Bearer eds_live_xxxxxxxxxxxxxxxx| Method | Endpoint | Fungsi |
|---|---|---|
| GET | /api/v1/services | Daftar layanan, harga, stok, allow_retry |
| GET | /api/v1/balance | Cek saldo (available, reserved, balance) |
| POST | /api/v1/rent | Sewa nomor baru: {"service_id": 23} |
| GET | /api/v1/order/{id} | Cek status & kode OTP |
| POST | /api/v1/order/{id} | Aksi: {"action": "cancel" | "done" | "retry"} |
| POST | /api/v1/kopken/check | Cek nomor Kopken massal: {"phones": ["08..."]} (maks 1000) |
| GET | /api/v1/kopken/check/{id} | Progres & hasil cek Kopken (fresh / registered) |
| POST | /api/v1/kopken/check/{id}/stop | Hentikan cek Kopken & refund sisa hold |
import requests, time
BASE = "https://edsotp.my.id"
H = {"Authorization": "Bearer eds_live_API_KEY_ANDA"}
r = requests.post(f"{BASE}/api/v1/rent", headers=H, json={"service_id": 23}).json()
oid = r["order_id"]
print("Nomor:", r["phone"])
for _ in range(30):
d = requests.get(f"{BASE}/api/v1/order/{oid}", headers=H).json()
if d.get("otp"):
print("OTP:", d["otp"])
break
time.sleep(3)Aktifkan URL HTTPS Anda di menu API Keys. Server mengirim POST JSON dengan header X-EDSOTP-Signature: sha256=<hex> yang dihitung dari HMAC-SHA256(webhook_secret, raw_body).
{"event": "otp.received", "order_id": 123, "service_id": 23, "service": "Gojek", "phone": "6285196495750", "price": 900, "state": "success", "otp": "482910"}