Skip to main content

Methods

Update

Updates an existing domain’s configuration.

UpdateWithContext

Updates an existing domain’s configuration with context support.

Parameters

string
required
The unique identifier of the domain to update

UpdateDomainRequest

bool
Enable or disable open tracking for emails sent from this domain
bool
Enable or disable click tracking for emails sent from this domain
TlsOption
TLS configuration for the domain. See TLS Options below.

TLS Options

The TlsOption type accepts the following constants:
string
  • resend.Enforced - Require TLS for all email delivery
  • resend.Opportunistic - Use TLS when available, fall back to unencrypted if not

Response

Domain

string
The unique identifier for the domain
string
Object type (“domain”)
string
The domain name
string
Timestamp when the domain was created
string
The verification status of the domain
string
The region where emails are sent from
[]Record
DNS records for domain verification

Examples

Enable Tracking

Configure TLS

Update Multiple Settings