Skip to Content

Domains

Add sending domains, track status, and manage capabilities.

A domain is a hostname you verify so Postbound can send (and optionally receive) mail as that host.

Create

curl -X POST https://api.postbound.app/domains \
  -H "Authorization: Bearer pb_…" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "mail.example.com",
    "region": "us-east-1",
    "custom_return_path": "send"
  }'
FieldDefaultNotes
name—Hostname to authenticate
regionus-east-1Sending region
custom_return_pathsendSubdomain used for MAIL FROM / bounce MX+TXT

Response includes id, status, records[], tracking flags, and capabilities.

Status lifecycle

StatusMeaning
not_startedCreated but checks not running
pendingWaiting on ownership / DNS
verifiedOwnership confirmed — domain may send
failedOwnership check expired or failed — recreate or re-verify

Publish the DNS records (or use Domain Connect), then call verify:

curl -X POST https://api.postbound.app/domains/<id>/verify \
  -H "Authorization: Bearer pb_…"

Ownership can also flip to verified automatically when Postbound receives the ownership provider’s webhook.

DKIM and SPF are not auto-polled

Postbound returns DKIM and SPF/MAIL FROM records for you to publish. Ownership is what the verify endpoint and webhooks actively confirm. Keep DKIM and MAIL FROM published for deliverability even after ownership verifies.

Update

PATCH /domains/:id

Common fields:

  • open_tracking, click_tracking — booleans
  • tls — opportunistic or enforced
  • capabilities.sending / capabilities.receiving — enabled or disabled

At least one of sending or receiving must remain enabled.

List and delete

GET /domains
DELETE /domains/:id

Deleting removes the domain from the workspace. Mail already accepted is unaffected; new sends from that hostname fail until you add it again.

Domain object (abridged)

{
  "object": "domain",
  "id": "…",
  "name": "mail.example.com",
  "status": "verified",
  "region": "us-east-1",
  "capabilities": {
    "sending": "enabled",
    "receiving": "disabled"
  },
  "records": [ /* DNS instructions */ ],
  "open_tracking": true,
  "click_tracking": true,
  "tls": "opportunistic"
}

On this page