SMS
The default. One credit per code, delivered from your sender name. Works on every phone, no app or data required.
Verification
Send a one-time code by SMS, WhatsApp or a phone call that reads it aloud, then verify it with a second request. We generate the code, remember it, expire it and check it, so your application never stores a secret it does not need.
POST /v1/otp/send{ "phone": "233241234567", "channel": "sms" }→ { "status": "sent", "expires_in": 300 }# the user types the code they receivedPOST /v1/otp/verify{ "phone": "233241234567", "code": "482913" }→ { "verified": true }
Three channels
The default. One credit per code, delivered from your sender name. Works on every phone, no app or data required.
For users on data who live in WhatsApp. Sent through the official WhatsApp OTP template, one credit per code.
We phone the user and read the digits twice. About 15 seconds of voice time per code. The fallback that gets through when a text is delayed or blocked.
The fallback pattern
Most users get the text at once. For the ones who do not, offer a “call me instead” button that resends the same code by voice. Because you pass the code you already sent, the user hears exactly the digits they were waiting for.
# 1. text itPOST /v1/otp/send{ "phone": "233241234567", "channel": "sms", "code": "879599" }# 2. the user taps "Call me instead"POST /v1/otp/send{ "phone": "233241234567", "channel": "voice", "code": "879599" }→ { "status": "sent","cost": { "total": "15s", "currency": "voice seconds" } }# 3. verify, same as alwaysPOST /v1/otp/verify{ "phone": "233241234567", "code": "879599" }→ { "verified": true }
Built in
Six digits by default, four to eight on request, generated on our side and stored hashed with an expiry. Verification compares and consumes it; a code works once.
Codes expire after a few minutes. Send again to issue a fresh code or resend the same one on another channel.
Already generate codes? Pass "code" and we only deliver it. Verification still works if you want it to.
Questions