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.
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
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" } 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.
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.
When email is a good fit
When to use a different channel
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.
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:
Email OTP pricing
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.
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.
client_ip, or block VPN, proxy, Tor or datacenter IPs.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.
The other channels
The same API calls cover all four channels.
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