Actions137
- Account Actions
- Automation Actions
- Broadcast Actions
- Contact Actions
- Contact Property Actions
- Domain Actions
- Email Actions
- Event Actions
- Inbox Actions
- Inbox Draft Actions
- Inbox Thread Actions
- Log Actions
- Receiving Email Actions
- Segment Actions
- Suppression Actions
- Template Actions
- Topic Actions
- Webhook Actions
Domain → Create
AI-generatedSummary
Create a new domain in Resend by specifying the domain name and configuring optional sending and receiving capabilities, tracking settings, region, and TLS preferences. The domain must be DNS-verified after creation before it can be used for sending emails.
Inputs
- Authentication — Choose between API Key or OAuth2 authentication methods.
- Domain Name (required) — The domain name to add to Resend (e.g., example.com).
- Capabilities — Configure sending and receiving capabilities, where at least one must be enabled.
- Click Tracking — Enable or disable tracking clicks within HTML emails sent from this domain.
- Custom Return Path — Specify a custom subdomain for email bounce handling, defaulting to 'send', which requires DNS configuration.
- Open Tracking — Enable or disable tracking of email open rates for this domain.
- Region — Select the AWS region for email sending to optimize deliverability.
- TLS — Set the TLS policy for email delivery: opportunistic (fallback allowed) or enforced (TLS required).
- Tracking Subdomain — Specify a custom tracking subdomain for click and open tracking, requiring DNS setup.
Output shape
a single record representing the created domain with its properties as returned by the Resend API
The operation returns the newly created domain object. Note that the domain must be verified via DNS configuration after creation to become active.
Examples
Example 1: Create a domain 'example.com' with sending enabled, receiving disabled, click/open tracking off, using US East 1 region, and opportunistic TLS.
Set Domain Name to 'example.com', enable sending capability, disable receiving, leave tracking off, select 'US East 1' for Region, and 'Opportunistic' for TLS.