Get Domain

Retrieve a single domain by ID, including its DNS records and verification status.

GET/domains/{domain_id}

Resend Compatibility: Compatible

Requires an API key with domains:read permission.

Path Parameters

domain_idstringrequired

The ID of the domain to retrieve.

Response Fields

objectstring

Always "domain".

idstring

The domain ID.

namestring

The domain name.

statusstring

Verification status (pending, verified or failed).

created_atstring

ISO 8601 timestamp.

regionstring

Sending region; currently global.

capabilitiesobject

Sending and receiving capability states, each enabled or disabled.

open_trackingboolean

Whether open tracking is enabled.

click_trackingboolean

Whether click tracking is enabled.

recordsarray

Array of DNS records with record, type, name, value, ttl, and status (pending, verified, or failed).

curl -X GET 'https://api.postflare.dev/domains/d91cd9bd-1176-453e-8fc1-35364d380206' \
  -H 'Authorization: Bearer sk_xxxxxxxxx'
// Set RESEND_BASE_URL=https://api.postflare.dev in the environment before
// the process starts. Without it the SDK sends to api.resend.com, silently.
import { Resend } from 'resend';

const resend = new Resend('sk_xxxxxxxxx');

const { data, error } = await resend.domains.get(
  'd91cd9bd-1176-453e-8fc1-35364d380206'
);

Response

Response
{
  "object": "domain",
  "id": "d91cd9bd-1176-453e-8fc1-35364d380206",
  "name": "example.com",
  "status": "verified",
  "created_at": "2026-01-01T00:00:00.000Z",
  "region": "global",
  "capabilities": { "sending": "enabled", "receiving": "disabled" },
  "open_tracking": true,
  "click_tracking": true,
  "records": [
    {
      "record": "Ownership",
      "type": "TXT",
      "name": "_postflare-verify.example.com",
      "value": "postflare-verify=5f0c7e2a-8d1b-4c3e-9a6f-2b7d4e1c9a30",
      "status": "pending",
      "ttl": "Auto",
      "priority": null
    }
  ]
}