Email OTP

Verify a user by email with the same POST /otp/send call you use for phone numbers. Pass an email address as the recipient and otp.com sends the code by email. You don't need to ask for a phone number.

Get Your API Key Free Read the docs
$0.0012 per verification · flat rate in every countryNo phone number neededSame API as SMS, WhatsApp and Telegram

Email OTP verifies the address you already collect, which makes it a natural fit for web sign-ups and SaaS logins: anywhere asking for a phone number would cost you sign-ups. It's also the lowest-priced otp.com channel, at the same rate in every country.

Email is chosen by the recipient you pass, not by your channel order: an email address is emailed, and a phone number walks your channel order. One recipient field takes either, so one integration covers both. See Channels & routing.

How email verification works

01

Send.

Call POST /otp/send with the email address as recipient. The response says "channel": "email" and the OTP is pending. The code itself is never returned by the API.

curl -X POST https://api.otp.com/api/v1/otp/send \
  -H "Authorization: Bearer otp_live_•••" \
  -H "Content-Type: application/json" \
  -d '{"recipient":"ada@example.com","locale":"en","client_ip":"81.2.69.142"}'

{ "otp_id": "9f3c1b2a-…", "status": "pending", "channel": "email", "action_url": null, "completion": "code" }
02

The user gets the code by email.

otp.com writes and sends the message; you don't template it. Pass locale (for example en) to choose the language, or your app's default is used.

03

Verify.

The user types the code into your app and you call POST /otp/verify with the otp_id and the code. A correct code sets the status to approved.

Statuses, attempts and code expiry work the same as on every other channel. See How verification works.

Scroll to playThe code arrives by emailThe user opens the emailTap to copy the codeThe user enters it in your appEmail verified

When email is a good fit

Web sign-ups and SaaS logins. You already ask for an email address, so verifying it adds no new form field.
You'd rather not collect phone numbers. Not every product needs one, and every field you skip is one less thing users have to hand over.
Passwordless login. The code is the login: email in, code back, user signed in, with no password to store or reset.
Cost matters. At $0.0012 per verification, email is a tenth of Telegram's rate and cheaper than SMS in 197 of the 199 countries we publish rates for. In the United States, email is $0.0012 and SMS is $0.0132.

When to use a different channel

You need to prove a phone number. Email verification proves control of an inbox, not of a phone. For that, use SMS, WhatsApp or Telegram.
Email is also your password-reset channel. If both the password reset and the second factor go to the same inbox, anyone who controls that inbox gets both. In that case, use a phone channel as the second factor.
The code has to arrive within seconds. Email passes through the user's mail provider and spam filtering, so arrival time is less predictable than a chat message.

Resends and delivery

A phone-number fallback chain doesn't apply to an email recipient, because there is no phone number to fall back to. If the code doesn't arrive, your app calls POST /otp/resend, and the same code is sent to the same address again.

A resend is a new message, so it is charged as a new verification.
A resend inside the cooldown window returns 429 ResendCooldownError. Once attempts are used up it returns 409 ResendNotAllowedError.

Because email can be slower than chat, the check-your-inbox screen does a lot of the work:

01 Show the address you sent to, so a typo is easy to spot.
02 Remind the user to check their spam or junk folder.
03 Show the resend button only after the cooldown.

Email OTP pricing

$0.0012 per verification · every country

Email OTP is $0.0012 per verification sent, the same in every country. You pay from a prepaid credit balance, with no setup fee, monthly minimum or subscription.

Charged: each code sent, once. A code that isn't opened or doesn't arrive is still charged, because the send is what you pay for.
Charged again: every resend.
MONTHLY VERIFICATIONS
Email monthly $12.00
All on SMS $132.00
SMS in the United States $0.0132 per verification Email with 15% resends $13.80/mo Email vs SMS 91% less than SMS

Worked example (illustrative). 10,000 sign-ups a month verified by email cost 10,000 × $0.0012 = $12.00. With 15% of users asking for a resend, add 1,500 × $0.0012 = $1.80, for $13.80. The 15% resend rate is an assumption, not a measured figure. Compare every channel and country on the pricing page.

Protecting email sign-ups from abuse

Bots can request codes for many addresses as easily as for many phone numbers. Your app's Security rules cover both.

App-wide and per-IP rate limits are on by default for new apps.
Recipient spread limit: caps how many different emails or phone numbers one IP can reach in an hour.
IP rules: require client_ip, or block VPN, proxy, Tor or datacenter IPs.
Daily caps on sends or on spend.

Run a rule in Monitor mode first to see what it would block, then switch it to Enforce.

Testing in the sandbox

Test keys run in the sandbox: the full send, verify and resend flow works, nothing is delivered and nothing is charged. The fixed code 123456 verifies, and any other code tests your failure path. Going live means swapping the key.

Testing in sandbox →

Frequently Asked Questions

Which email address are the codes sent from?

Email OTPs are delivered from verify@otp.com.

Can I change the email's colors or customize it?

Not at the moment. otp.com doesn't currently allow changes to the email's design or content.

Ship verification with one prompt.

$3 free credits. No credit card. No sales call. Your first OTP in 10 minutes.

No credit card · No sales call · No subscription