Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Update an existing domain

PATCH/domains/{domain_id}Update an existing domain

Parameters

domain_idstringpathrequired

The ID of the domain.

Request body

application/json
objectUpdateDomainOptions
capabilitiesobject

Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.

Show child attributes
receivingstring

Enable or disable receiving emails to this domain.

one of "enabled", "disabled"

sendingstring

Enable or disable sending emails from this domain.

one of "enabled", "disabled"

click_trackingboolean

Track clicks within the body of each HTML email.

open_trackingboolean

Track the open rate of each email.

tlsstring

enforced | opportunistic.

default "opportunistic"

tracking_subdomainstring

The subdomain to use for click and open tracking.

Example request
{
  "capabilities": {
    "receiving": "disabled",
    "sending": "disabled"
  },
  "click_tracking": true,
  "open_tracking": true,
  "tls": "opportunistic",
  "tracking_subdomain": "string"
}

Responses

200OKapplication/json
objectUpdateDomainResponseSuccess
idstring

The ID of the updated domain.

objectstring

The object type representing the updated domain.

Example response
{
  "id": "d91cd9bd-1176-453e-8fc1-35364d380206",
  "object": "domain"
}
Documentation menu