ReOTP.
Erweiterte Funktionen/Automatische Benachrichtigungen (Webhooks)
1 min read

Automatische Benachrichtigungen (Webhooks)

Echtzeit-Verifikationsupdates auf Ihrem eigenen Server empfangen.

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"
}

Interaktiver Live-API-Playground

Testen Sie den Live-Versand von Verifikationsanfragen und generieren Sie Integrationscode in Ihrer bevorzugten Programmiersprache.

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"
  }'