How It Works
The OTP process is straightforward:-
Send OTP
Make a POST request to thesend-otp
endpoint with the user’s phone number. A 6-digit code is generated and sent via SMS using your registered Sender ID. -
User Inputs OTP
The user enters the code they received. -
Validate OTP
Make a POST request to thevalidate-otp
endpoint with the phone number and the code. If valid and not expired, you’ll receive a success response.
Use Cases
- Secure user login or account creation
- Authorize wallet top-ups, withdrawals, or payments
- Confirm sensitive changes (e.g., password updates, PIN resets)
- Add an extra layer of verification during onboarding
Why Use Dojah OTP
- Fast, telco-optimized delivery
- Custom sender ID branding
- Developer-friendly endpoints
- Built-in expiration and retry logic
- Secure and stateless validation