Skip to main content
POST
/
domains
/
:domain_id
/
tracking-domains
/
:tracking_domain_id
/
verify
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"
}
Custom tracking domains are currently in private alpha and only available to a limited number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend SDK:
npm install resend@6.10.0-preview-tracking-domains.0
Contact us if you’re interested in testing this feature.
Calling this endpoint triggers an asynchronous verification process. The status will be set to pending while verification is in progress. Use Retrieve Tracking Domain or List Tracking Domains to check the current status.

Path Parameters

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"
}