How WhatsApp OTP works with Reawap
Your backend generates the code and stores it as you do today. Instead of calling an SMS gateway, it calls the Reawap API with the customer's number and a message such as "Your login code is 482913. It expires in 5 minutes." Reawap queues it on your linked number and returns a message ID.
When the customer's phone receives and opens the message, Reawap sends delivered and read events to your webhook. If a number is not on WhatsApp, the API tells you, so you can fall back to SMS.
Good uses for WhatsApp alerts
Beyond login codes, Kenyan apps and fintechs use WhatsApp alerts for:
- Payment and M-Pesa transaction confirmations
- Password reset links and new device sign-in warnings
- Loan approval, disbursement and repayment notices
- Order, booking and ticket confirmations
Check the number first
Reawap's number check tells you whether a phone number is on WhatsApp before you send. Use it at sign-up to decide whether to offer WhatsApp or SMS for verification.
