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"
}'| Field | Default | Notes |
|---|---|---|
name | — | Hostname to authenticate |
region | us-east-1 | Sending region |
custom_return_path | send | Subdomain used for MAIL FROM / bounce MX+TXT |
Response includes id, status, records[], tracking flags, and capabilities.
Status lifecycle
| Status | Meaning |
|---|---|
not_started | Created but checks not running |
pending | Waiting on ownership / DNS |
verified | Ownership confirmed — domain may send |
failed | Ownership 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/:idCommon fields:
open_tracking,click_tracking— booleanstls—opportunisticorenforcedcapabilities.sending/capabilities.receiving—enabledordisabled
At least one of sending or receiving must remain enabled.
List and delete
GET /domains
DELETE /domains/:idDeleting 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"
}