Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Retrieve a single domain

GET/domains/{domain_id}Retrieve a single domain

Parameters

domain_idstringpathrequired

The ID of the domain.

Responses

200OKapplication/json
objectDomain
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

Whether click tracking is enabled for this domain.

created_atstring · date-time

The date and time the domain was created.

idstring

The ID of the domain.

namestring

The name of the domain.

objectstring

The type of object.

open_trackingboolean

Whether open tracking is enabled for this domain.

recordsarray of object
Show child attributes
Show array items
namestring

The name of the DNS record.

priorityinteger

The priority of the record (only applicable for MX records).

recordstring

The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking).

one of "SPF", "DKIM", "Receiving", "Tracking"

statusstring

The status of the record.

one of "pending", "verified", "failed", "temporary_failure", "not_started"

ttlstring

The time to live for the record.

typestring

The DNS record type.

one of "MX", "TXT", "CNAME"

valuestring

The value of the record.

regionstring

The region where the domain is hosted.

statusstring

The status of the domain.

tracking_subdomainstring

The subdomain used for click and open tracking.

Example response
{
  "capabilities": {
    "receiving": "disabled",
    "sending": "disabled"
  },
  "click_tracking": true,
  "created_at": "2023-04-26T20:21:26.347412+00:00",
  "id": "d91cd9bd-1176-453e-8fc1-35364d380206",
  "name": "example.com",
  "object": "domain",
  "open_tracking": true,
  "records": [
    {
      "name": "string",
      "priority": 0,
      "record": "DKIM",
      "status": "failed",
      "ttl": "string",
      "type": "CNAME",
      "value": "string"
    }
  ],
  "region": "us-east-1",
  "status": "not_started",
  "tracking_subdomain": "string"
}
Documentation menu