Skip to main content
POST
/
domains
/
:domain_id
/
verify
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.domains.verify(
  'd91cd9bd-1176-453e-8fc1-35364d380206',
);
{
  "object": "domain",
  "id": "d91cd9bd-1176-453e-8fc1-35364d380206"
}
Calling this API endpoint triggers an asynchronous domain verification process. The domain will be temporarily marked as pending regardless of its current status while the verification is in progress. Since this request initiates the complete domain verification cycle, it will trigger domain.updated webhook events as the domain status changes during the verification process.
Claimed a domain? A domain claim transfers the domain into your account as a brand-new domain with its own DKIM keys, so the previous account’s DNS records can’t be reused. After the claim is completed, fetch the domain with Get Domain, update your DNS with the new DKIM record(s) it returns, then call this endpoint to verify it before sending or receiving email. See DKIM records for details.

Path Parameters

import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.domains.verify(
  'd91cd9bd-1176-453e-8fc1-35364d380206',
);
{
  "object": "domain",
  "id": "d91cd9bd-1176-453e-8fc1-35364d380206"
}