Enable, disable or reconfigure inbound
Auth: Bearer key scoped to the domain.
webhook_url is required the first time inbound is enabled on a domain. Enabling adds the provider's own inbound DNS record to dns_records, on a subdomain (inbound. by default, or subdomain) so the domain's own mailbox is untouched. On SES, enabling also creates the receipt rule that routes the subdomain's mail; the provider needs an inbound bucket first.
bearerAuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
application/json- body
enabled*booleanWhether this domain accepts mail.
webhook_url?|Where inbound.received is delivered. Required to enable inbound; a fresh URL rotates the signing secret. null removes the endpoint, and can't be combined with enabled: true.
retention_days?integerDays inbound mail is held before it's purged. 7 by default, up to the install's ceiling: 30 unless an admin changed it.
1 <= value <= 365subdomain?stringThe label mail is addressed to, as in reply@.. "inbound" by default. Changing it replaces the inbound DNS records.
^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$The domain's inbound status. webhook_secret is present only when a webhook URL was just (re)registered.
application/json- response
domain_id?stringThe domain this status is for.
enabled?booleanWhether this domain accepts mail.
retention_days?integer7 default, up to the install's ceiling: 30 unless an admin changed it.
subdomain?stringThe label mail is addressed to. inbound by default.
host?stringThe host mail is addressed to, .: reply@.
webhook_url?|Where inbound.received is delivered. Null until one is registered.
receiver_url?|Where this domain's provider should be told to POST inbound mail — a manual step in the provider's console for an adapter without an inbound API. Null when Pouch routes the provider's mail itself.
dns_records?array<>Includes the provider's inbound record once enabled, alongside the domain's send records.
webhook_secret?stringPresent only the moment a webhook URL is (re)registered — shown once, like any endpoint secret.
curl -X PATCH 'https://pouch.example.com/v1/domains/string/inbound' \ -H 'Content-Type: application/json' \ -d '{ "enabled": true}'{ "domain_id": "string", "enabled": true, "retention_days": 0, "subdomain": "string", "host": "string", "webhook_url": "string", "receiver_url": "string", "dns_records": [ { "type": "TXT", "name": "string", "value": "string", "priority": 0, "merge": "spf" } ], "webhook_secret": "string"}List domains GET
Auth: Bearer key.
Update a domain PATCH
Auth: Bearer key scoped to the domain. provider_id records a pending move; the domain keeps sending on its current provider until it verifies, and null cancels a move in progress. bulk_allowed turns bulk sending on or off; turning it on is refused when the provider can't do bulk at all, and while the domain has no valid DMARC record. layout sets the frame: fields left out keep their stored value, a domain without a layout needs name, accent and footer, and null removes it. Layout applies first, so a layout that fails validation changes nothing.