Everything Resend publishes
R

Resend

The Email Verification API

/blog/email-verification-api

article
Words
813
Reading time
4 min
Published
2026-08-25
Last crawled
2026-08-27
Language
EN

Opening

Whenever you collect an email address it is best practice to verify that the person who provided it actually owns it. It's all part of getting email consent to send emails. The Email Verification API is a new proposal to

The Email Verification API1 / 6

Improving email verification

When a user enters an email address in a form online, it's common practice to verify their email by sending a one-time password (OTP) or magic link. The user leaves the webpage, opens their inbox, and copies a code or cl

The Email Verification API2 / 6

How does the Email Verification API work?

The API has a few different parties involved: the user, the browser, the mailbox provider (known as the issuer), and your server (the verifier). Here's a quick and simple version of how it all works together: - The user

The Email Verification API3 / 6

The front-end

We'll start with the HTML form. The email needs to be of type "email" with the attribute set to "email" as well. You also need to provide a hidden input with the attribute of "email-verification-token" that has a random

The Email Verification API4 / 6

Verifying a token

The process of verifying the token is quite involved, requiring parsing, DNS and network lookups, and verifying the token signatures. If your server is written in JavaScript, I built an npm package to perform the verific

The Email Verification API5 / 6

Better email verification is better for everyone

I really like this API for two reasons. For the user, there's no more heading off to their inbox to verify their email when they are just trying to get something done, and they don't have to change their behavior at all.

The Email Verification API6 / 6