import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.trackingDomains.verify(
'd91cd9bd-1176-453e-8fc1-35364d380206',
'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
);
{
"object": "tracking_domain",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
Verify an existing tracking domain.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.trackingDomains.verify(
'd91cd9bd-1176-453e-8fc1-35364d380206',
'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
);
{
"object": "tracking_domain",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
npm install resend@6.10.0-preview-tracking-domains.0
pending while
verification is in progress. Use Retrieve Tracking Domain
or List Tracking Domains to check the current status.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.trackingDomains.verify(
'd91cd9bd-1176-453e-8fc1-35364d380206',
'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
);
{
"object": "tracking_domain",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
Was this page helpful?