Updated 15 November 2026 ยท EduFlex Notify
What is an OTP?
A one-time password (OTP) is a short code, usually 6 digits, sent by SMS to a phone number. The user types it into your website or app to prove they own that number. OTPs are used for sign-up verification, login, password resets, and confirming payments or withdrawals.
How OTP works with EduFlex Notify
- Your server asks our API to send a code to the user's number.
- We create a random code, store only a scrambled version of it, and send the SMS.
- The user types the code into your site.
- Your server asks our API to verify it. You get a clear yes or no.
You never have to generate, store or compare codes yourself.
Built-in security
- Random codes from a secure random generator, 4 to 8 digits.
- Stored scrambled: nobody can read the codes, including us.
- Short expiry: 5 minutes by default, 1 to 30 minutes if you choose.
- One use only, and a new code cancels the old one.
- Wrong tries are limited: after 5 wrong tries the code is locked.
- Sending limits per number stop people flooding a phone with codes and protect your credits.
- Purpose binding: a code sent for "login" cannot be used to approve a "withdrawal".
OTP sender IDs
Mobile networks only deliver codes from sender IDs registered for OTP. When you request a sender ID, choose "Use for OTP" and give the website or app where the codes are used. Read the Sender ID Guidelines.
Send and verify a code
POST https://sms.eduflextech.com/api/v1/otp/send
{"phone": "0241234567", "purpose": "login"}
POST https://sms.eduflextech.com/api/v1/otp/verify
{"phone": "0241234567", "code": "482913", "purpose": "login"}
Full details are in the API documentation.
Protect your OTP page from abuse
Attackers sometimes hit OTP forms with fake numbers to waste your credits. Add a bot check (for example Cloudflare Turnstile) to your sign-up form, and only send a new code when the user asks for one. Our per-number limits and your daily credit limits add a second layer of protection.
Frequently asked questions
How long does an OTP take to arrive?
Codes are sent immediately, and usually arrive within seconds.
What happens if the code cannot be delivered?
If no network partner accepts the message, the credits for that code are returned to your balance.
Can I use my own message wording?
Yes. Write your own text with {code} where the code should appear, for example: Your Kofi Shop code is {code}.
How much does an OTP cost?
Each code uses a small number of SMS credits from your normal balance. See the pricing page for current prices.
Start sending today
Create a free account, request your sender ID and send your first message in minutes. Pay with Mobile Money or card. No monthly fees.