Authenticate users securely using Dojah’s OTP service. This API enables you to send time-bound one-time passwords to users’ phone numbers, then validate the code when they submit it. It’s ideal for login, signup, transaction confirmation, and two-factor authentication (2FA).Documentation Index
Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
The OTP process is straightforward:-
Send OTP
Make a POST request to thesend-otpendpoint 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-otpendpoint 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