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_idstringrequiredThe ID of the domain to retrieve.
Response Fields
objectstringAlways "domain".
idstringThe domain ID.
namestringThe domain name.
statusstringVerification status (pending, verified or failed).
created_atstringISO 8601 timestamp.
regionstringSending region; currently global.
capabilitiesobjectSending and receiving capability states, each enabled or disabled.
open_trackingbooleanWhether open tracking is enabled.
click_trackingbooleanWhether click tracking is enabled.
recordsarrayArray 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
{
"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
}
]
}