Skip to Content
Pouch
Domains

Read a domain

GET
/v1/domains/{id}

Auth: Bearer key scoped to the domain.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Query Parameters

include?string

Comma-separated expansions to add: standing (reputation over the last 7 days, computed on read, returned by default); dmarc (the DMARC record read live: its status, policy and report addresses, whether SPF and DKIM align and what needs a change); reputation (the reputation detail: findings, 7- and 30-day rates against every line, recent bounce and complaint reasons, sending patterns, blocklists, provider findings and tenant counts. Null until the domain has verified).

fields?string

Comma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, name, status, dns_records, missing_records, setup, errors, verified_at, last_checked_at, created_at, provider_id, pending, stall, bulk_allowed, layout, standing, standing_reason, reputation, dmarc.

Response Body

The domain.

application/json
  1. response
id?string

Opaque id, prefixed dom_.

name?string

The domain name.

status?string

Lifecycle status.

Value in"pending""verified""failed"
dns_records?array<>

The complete list to publish: DKIM for the domain, plus whatever else the provider needs and a recommended DMARC record at _dmarc. (required: false), carrying the domain's report address in rua once an admin has set up reports. A record marked merge joins one the name may already have.

missing_records?array<>

Records the provider still can't see. Filled by a verify call. Never lists the DMARC record; dmarc reports it.

setup?array<>

What the provider can't finish through its API. A step in the provider's console reads as waiting on an admin; a webhooks step on a provider that wires its own events clears with a verify call.

errors?array<string>

Provider reasons for a failed status. Empty once verification succeeds.

verified_at?|

ISO 8601 timestamp, or null.

last_checked_at?|

ISO 8601 timestamp of the last verify check, or null.

created_at?string

ISO 8601 timestamp.

provider_id?string

The provider this domain sends through now, prefixed pac_. A move changes it once the target verifies.

pending?|

A move to another provider in progress, started by PATCH. Null when there isn't one.

stall?|

Sending is held on this domain: sends are still accepted, queued ones wait until a person clears the hold. Null when sending normally.

bulk_allowed?boolean

Whether this domain may send bulk batches (POST /v1/batches). Off by default; set with PATCH.

layout?|

The frame a send with layout: true is wrapped in, and what a send's layout overrides fall back to. Null when there isn't one; set with PATCH.

standing?string

Reputation standing over the last 7 days. paused means sending from the domain is paused.

Value in"healthy""watch""at_risk""paused"
standing_reason?|

One sentence on why the domain isn't healthy. Null when it is.

dmarc?

With include=dmarc. The domain's DMARC record, read live from DNS: its own, then its organizational domain's. status: found, missing, multiple (receivers ignore them all), invalid or unresolved (the lookup didn't answer). record_name, source (domain or organizational) and record say where it was read and what it says. policy, subdomain_policy, percent, rua, ruf, adkim and aspf are its tags, null or empty without a usable record. alignment: { dkim, spf, passes }, each with the domains the setup authenticates as, the mode and whether they align; passes when either does. findings: { kind, severity, message }, where severity problem needs a change and note doesn't. recommended: the record to publish at _dmarc., the recommended one when there's no usable record, or the published one with the domain's report address added to rua; null when nothing needs to change. A missing record never blocks verification.

reputation?|

With include=reputation. findings: every finding behind the standing, worst first. windows: 7 and 30 days, each metric's count, denominator, rate, previous_rate and delta against watch_line, at_risk_line, stall_line, provider_review_line and provider_pause_line. reasons: the receiving servers' words for recent bounces and complaints. signals: the last 24 hours against the 7 days before, or null. blocklists: state (on, off or paused), each list's answer and listed link domains. provider_findings: open SES findings on the organization's tenant. tenant_volume: SES's own counts for the tenant, or null. Null until the domain has verified.

Example Request
curl -X GET 'https://pouch.example.com/v1/domains/string'
Example Response
{  "id": "string",  "name": "string",  "status": "pending",  "dns_records": [    {      "type": "TXT",      "name": "string",      "value": "string",      "priority": 0,      "merge": "spf"    }  ],  "missing_records": [    {      "type": "TXT",      "name": "string",      "value": "string",      "priority": 0,      "merge": "spf"    }  ],  "setup": [    {      "step": "domain",      "message": "string"    }  ],  "errors": [    "string"  ],  "verified_at": "string",  "last_checked_at": "string",  "created_at": "string",  "provider_id": "string",  "pending": {    "provider_id": "string",    "dns_records": [      {        "type": "TXT",        "name": "string",        "value": "string",        "priority": 0,        "merge": "spf"      }    ],    "missing_records": [      {        "type": "TXT",        "name": "string",        "value": "string",        "priority": 0,        "merge": "spf"      }    ],    "started_at": "string"  },  "stall": {    "reason": "string",    "message": "string",    "stalled_at": "string"  },  "bulk_allowed": true,  "layout": {    "name": "string",    "logo": "string",    "accent": "string",    "footer": "string"  },  "standing": "healthy",  "standing_reason": "string",  "dmarc": {    "status": "found",    "record_name": "string",    "source": "domain",    "record": "string",    "policy": "none",    "subdomain_policy": "none",    "percent": 0,    "rua": [      "string"    ],    "ruf": [      "string"    ],    "adkim": "relaxed",    "aspf": "relaxed",    "alignment": {},    "findings": [      {        "kind": "string",        "severity": "problem",        "message": "string"      }    ],    "recommended": "string"  },  "reputation": {    "findings": [      {}    ],    "windows": {},    "reasons": [      {}    ],    "signals": {},    "blocklists": {},    "provider_findings": [      {}    ],    "tenant_volume": {}  }}