Create Domain Claim
create-domain-claimInitializes a domain claim process, recreating the domain under your account with new DKIM keys, and returns a TXT record for DNS proof of ownership.
Instructions
Start a claim for a domain another Resend account has already verified. The domain is recreated under your account with brand-new DKIM keys, so the previous account's DNS records cannot be reused. Returns a TXT record that MUST be added to your DNS to prove ownership. You MUST display the TXT record to the user. After they add it, use verify-domain-claim, then poll get-domain-claim until status is "completed".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The domain name to claim (e.g., example.com) | |
| region | No | Deployment region. Defaults to "us-east-1". | |
| openTracking | No | Enable email open rate tracking. | |
| clickTracking | No | Enable click tracking in HTML emails. | |
| customReturnPath | No | Subdomain for the Return-Path address. Defaults to "send". | |
| trackingSubdomain | No | Custom subdomain for tracking links (e.g., "track" for track.example.com). |