Choose between Email or SMS webhook receivers. Includes sample payloads, validation rules, and response examples.
POST https://verifyone.bhanguz.com/api/webhooks/otp-response
| Parameter | Type | Required | Description |
|---|---|---|---|
| log_id | string | Yes | Unique ID of the OTP log in your system. |
| to | string | Yes | Registered user email receiving the OTP. |
| status | string | Yes | Status of delivery: verified | failed. |
{
"log_id": "abc123xyz",
"to": "user@example.com",
"status": "verified"
}
{
"error": 0,
"message": "Webhook received",
"data": {
"log_id": "abc123xyz",
"to": "user@example.com",
"status": "verified"
}
}
{
"error": 1,
"message": "Log ID not found"
}
{
"error": 2,
"message": "Email mismatch"
}
POST https://verifyone.bhanguz.com/api/webhooks/otp-response
| Parameter | Type | Required | Description |
|---|---|---|---|
| log_id | string | Yes | Unique ID of the OTP log in your system. |
| to | string | Yes | Registered user phone receiving the OTP. |
| status | string | Yes | Status of delivery: verified | failed. |
{
"log_id": "abc123xyz",
"to": "9876543210",
"status": "failed"
}
{
"error": 0,
"message": "Webhook received",
"data": {
"log_id": "abc123xyz",
"to": "9876543210",
"status": "failed"
}
}
{
"error": 1,
"message": "Log ID not found"
}
{
"error": 2,
"message": "Phone mismatch"
}
{
"error": 3,
"message": "OTP already used or expired"
}
POST with Content-Type: application/json.log_id against your otp_logs table.200 on success.