Send one-time passwords (OTP)
Last updated November 29, 2026
A one-time password is a short code that proves someone holds a phone, for sign-ups, logins or payments. Your developer sends and checks it with our API.
Before you start
- A secret API key.
- Credit in your SMS or WhatsApp wallet.
You don't need your own sender ID. SMS codes go to Nigerian numbers only.
1. Send a code
Send a request to https://api.v1.simpu.co/otp/request_token with:
- recipient: the phone number, such as 2348031234567.
- channel:
sms(the default) orwhatsapp. - length: 4 to 8 digits. The default is 4; we suggest 6.
- expires_in: 1 to 60 minutes. The default is 15.
Keep the id that comes back.
2. Check what your user typed
Send https://api.v1.simpu.co/otp/verify the id and the code as token, both as text.
- A correct code works once.
- A wrong code returns "Invalid token".
- An expired or used code returns "Token not found".
Limit the number of tries in your app. We don't limit them for you.
The full reference is at docs.simpu.co.
Try it without code
In the SMS app, click Developers, then API Sandbox, and choose Request OTP. This sends a real code and charges you.

See your codes
Click Developers, then OTP Logs. A code shows Sent until it's verified, even after it expires. Use the copy button to get a code's ID. Billing shows what you were charged.


