Verify Users Worldwide in Under 2 Seconds: WhatsApp, Telegram and Email OTP Through One API
Every app that needs signups eventually hits the same problem: **how do you verify users quickly, cheaply and in every country?** SMS is expensive, slow in some regions, and often blocked or filtered. Meanwhile, most of
Every app that needs signups eventually hits the same problem: **how do you verify users quickly, cheaply and in every country?**
SMS is expensive, slow in some regions, and often blocked or filtered. Meanwhile, most of your users already live inside WhatsApp, Telegram and their email inbox.
That's why I built Authly, a developer-first OTP and 2FA API that delivers verification codes over those channels, with delivery in under 2 seconds.
What is Authly?
Authly is a REST API for sending and verifying one-time passwords through:
- WhatsApp, using the official Meta WhatsApp Cloud API
- Telegram, through the Telegram Verification Gateway
- Email, using branded transactional email
It covers 195+ countries, with no platform fees on top of delivery costs.
Why not just use SMS?
SMS still works, but it has real downsides:
- Cost. International SMS rates add up quickly.
- Deliverability. Carrier filtering and regional rules can delay or drop codes.
- User habits. In many markets people check WhatsApp before they check SMS.
Using the channel your users already open is faster and often cheaper.
Smart channel failover
If a code can't be delivered on one channel, Authly can fall back to another. For example: WhatsApp first, then Telegram, then Email. Your users still get their code, and you don't have to build the retry logic yourself.
More than a basic OTP API
- Hosted 2FA checkout, so you don't have to build the verification UI
- Passwordless magic links
- Click/scan-to-verify on WhatsApp, where the user taps a link or scans a code instead of typing digits
- Phone intelligence lookup, to check numbers before you send
Quick start
⚠️ Replace the endpoints and parameters below with the ones from the docs.
// 1. Send an OTP
const res = await fetch("https://api.authly.space/YOUR_SEND_ENDPOINT", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
to: "+1234567890",
channel: "whatsapp",
}),
});
// 2. Verify the code the user entered
const verify = await fetch("https://api.authly.space/YOUR_VERIFY_ENDPOINT", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
to: "+1234567890",
code: "123456",
}),
});
Who is it for?
- Startups that want OTP verification without a heavy SMS bill
- Apps with users in many countries
- Developers looking for a simple alternative to Twilio Verify
Try it
You can create a free developer account at authly.space and read the API docs. Pricing is on the pricing page.
I'm the maker of Authly, and I'd love your feedback. Which channels or features would you want next? Let me know in the comments. 👇
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.