ReOTP.
Funciones Avanzadas/Notificaciones Automáticas (Webhooks)
1 min read

Notificaciones Automáticas (Webhooks)

Reciba actualizaciones del proceso de verificación instantáneamente en su propio servidor.

Instead of consuming your server's resources in a continuous polling process from the browser, you can set up a Webhook URL in your project's dashboard.\n\nAs soon as the user's number is successfully verified, the ReOTP server will send a direct POST request containing the transaction details to your private server.\n\n### Security Check (Webhook Signature)\nIf you set a Webhook Secret Key in the dashboard, we will send an x-webhook-signature header with the request containing an HMAC signature encrypted using your key and the SHA256 algorithm. You can use it to ensure the request is from us and hasn't been tampered with.

Integration Code (SDKs)
{
  "event": "verification.success",
  "phoneNumber": "+966500000000",
  "actualPhoneNumber": "+966500000000",
  "requestId": "cmrjpk97j0000okc514kfdkll",
  "projectId": "cmrjpk97j00...",
  "method": "WHATSAPP",
  "timestamp": "2026-07-17T12:00:00.000Z"
}

Sandbox de API interactivo (Interactive API Playground)

Prueba el envío directo de solicitudes de verificación y genera códigos de integración en el lenguaje de programación que prefieras.

curl -X POST https://reotp.com/api/verify/init \
  -H "Authorization: Bearer 15a1c1c7-ed05-40df-b7c3-69c327542a07" \
  -H "Content-Type: application/json" \
  -d '{
    "phoneNumber": "201000000000",
    "method": "WHATSAPP"
  }'