REST API · VERSION 1
Voice verification
in four requests.
Base URL: https://otp53.com. Authenticate every request with your dashboard API key.
Authentication
Send your key using either Authorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY.
1. Send an OTP
curl -X POST https://otp53.com/api/v1/otp/send -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"phone":"0771234567"}'
{ "ok": true, "request_id": "otp_...", "status": "sent", "expires_in": 300, "cost": 5, "balance": 45 }
2. Verify the code
curl -X POST https://otp53.com/api/v1/otp/verify -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"request_id":"otp_...","otp":"123456"}'
3. Check balance
curl https://otp53.com/api/v1/balance -H "X-API-Key: YOUR_API_KEY"
4. Check request status
curl https://otp53.com/api/v1/status/REQUEST_ID -H "X-API-Key: YOUR_API_KEY"
Error codes
| 400 | Invalid phone, code or request |
| 401 | Missing or invalid API key |
| 402 | Insufficient wallet balance |
| 429 | Rate limit or attempts exceeded |
| 502 | Voice gateway unavailable |