Create Domain
create-domainCreate a sending domain in Resend and retrieve DNS records for verification. Set up these records with your DNS provider to enable email delivery.
Instructions
Create a new domain in Resend. Returns DNS records that must be configured with your DNS provider for verification. You MUST display the DNS records to the user so they can set them up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tls | No | TLS mode. "opportunistic" attempts secure connection with fallback. "enforced" requires TLS or fails. Defaults to "opportunistic". | |
| name | Yes | The domain name (e.g., example.com) | |
| region | No | Deployment region. Defaults to "us-east-1". | |
| capabilities | No | Domain capabilities configuration. | |
| 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). When set, click and open tracking URLs will use this subdomain instead of the default. |