Advanced Features/Automated Notifications (Webhooks)
1 min read
Automated Notifications (Webhooks)
Receive verification process updates instantly on your own server.
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.
As 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.
Security Check (Webhook Signature)
If 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)
Interactive Live API Playground
Test verification requests live and generate integration code in your preferred programming language.
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"
}'