Email OTP API with branded templates & BYO SMTP.
Send high-deliverability 6-digit Email OTP codes and 1-click passwordless Magic Links with DKIM/SPF alignment, automatic blocking of 120+ disposable burner email domains, and Bring-Your-Own Amazon SES / SMTP support.
Send Branded Email OTPs & Passwordless Magic Links
Stop maintaining Redis TTLs, bcrypt hashes, rate limiters, and HTML email templates yourself—ship Email 2FA in two calls.
import Authly from 'authly-otp';
const authly = new Authly(process.env.AUTHLY_API_KEY);
// 1. Send Branded Email OTP
const { otpId } = await authly.otp.send({
to: 'developer@company.com',
channel: 'email',
purpose: 'login',
});
// 2. Or dispatch a 1-click Passwordless Magic Link
await authly.magicLink.send({
to: 'developer@company.com',
channel: 'email',
redirectUrl: 'https://yourapp.com/auth/callback',
});Authly Email OTP API vs. DIY Email Verification
Everything required for secure, spam-resistant inbox authentication out of the box.
| Capability | Authly Email OTP API | DIY SMTP + Custom Code |
|---|---|---|
| OTP Hashing & Expiry | Salted bcrypt + automatic TTL + single-use lock | Build & maintain Redis/DB TTL logic |
| Brute-Force Protection | 5-attempt lockout + 60s resend cooldown built-in | Custom rate-limit middleware required |
| Burner Email Defense | Blocks 120+ disposable temp-mail domains | Maintain & update blocklists manually |
| Branded Email Templates | Visual Branded Email Studio with live preview | Hand-code responsive Outlook/Gmail HTML |
| Bring Your Own SMTP | Plug in Amazon SES, SendGrid, Postmark, or SMTP | Manage credentials & TLS retries yourself |
| Magic Links & Failover | Built-in /magic-link + WhatsApp/Telegram fallback | Separate auth flows & vendors required |
Engineered for Inbox Placement & Zero Abuse
Branded Email OTP Template Studio
Customize your company name, logo URL, brand accent color, subject line, and support footer with a real-time inbox preview inside the dashboard.
Bring Your Own SMTP / Amazon SES
Send from your own verified domain via Amazon SES, SendGrid, Postmark, or custom SMTP—or start instantly with Authly’s managed DKIM/SPF-aligned relay.
Disposable Email Blocker
Enable blockDisposableEmails to automatically reject signups from 120+ temporary and burner inbox providers before wasting credits or polluting your user table.
1-Click Passwordless Magic Links
Prefer link-based login over 6-digit codes? Call POST /api/v1/otp/magic-link to deliver signed single-use sign-in links via Email or WhatsApp.
5,000 Free Email OTPs Every Month
Pro ($29/mo), Growth ($59/mo), and Custom Wallet top-ups include 5,000 free monthly Email OTPs, making email fallback virtually free at scale.
Unified Multi-Channel API
Use Email as a standalone verification channel or as an automatic fallbackChannel whenever a phone-based WhatsApp or Telegram OTP cannot be delivered.
Launch Branded Email OTP Verification in 3 Steps
Customize Branding or Connect SMTP
Start immediately on Authly’s managed email infrastructure, or configure your logo, colors, and optional custom SMTP credentials in the dashboard.
Send OTPs or Magic Links
Call POST /api/v1/otp/send with channel: "email" (or /api/v1/otp/magic-link) using your x-api-key header or the official authly-otp SDK.
Verify Securely on Your Backend
Validate the user’s 6-digit code with POST /api/v1/otp/verify and let Authly enforce attempt locks, expiry, and single-use consumption.
Email OTP API Frequently Asked Questions
Ship branded Email OTPs & Magic Links in 5 minutes
Start with 100 free test Email OTPs and unlock 5,000 free monthly Email OTPs on any paid plan.