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"
}
Verify an existing domain.
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"
}
Documentation Index
Fetch the complete documentation index at: https://resend.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.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"
}
Was this page helpful?