Create Sending Domain
Register a new custom sending domain and auto-sync DKIM/SPF/DMARC records when possible.
Overview
Registers a new custom domain, auto-syncs the DKIM/SPF/DMARC records when Puffle can manage the DNS zone, triggers verification, and schedules thedomain-verify-poller background task to converge status as DNS propagates.
Sending domains unlock creating email inboxes under that domain via createEmailAccount. Until a domain is verified, no inboxes can be provisioned on it.
/api/email/domains with the list verb. See List sending domains to enumerate domains already registered.AI agent notes
createEmailDomain— Puffle receives DKIM/SPF/DMARC records; if managed DNS is available for the zone, records are written automatically and verification is triggered.- If DNS auto-sync was skipped,
statusstayspending— the user must add the DNS records manually, then callverifyEmailDomain(no?poll=true) once. - The
domain-verify-pollerbackground task re-checks the live domain status on an exponential-backoff schedule (10m, 20m, 40m, 80m, 160m, 320m) for up to 12 hours.
verified the domain, you get a 409.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Only domain is accepted. The handler provisions the domain, auto-syncs the DKIM/SPF/DMARC records when the zone is managed by Puffle, triggers verification if DNS was synced, and schedules the domain-verify-poller background task to converge status.
Apex domain or subdomain to register. Lowercased server-side. Must be a valid domain name.
Response
Domain created. status is verified if DNS was already in place, verifying if the poller has been scheduled, or pending if DNS auto-sync failed and the user must add records manually.
A custom sending domain. Domains are provisioned with backing mail infrastructure, optionally auto-synced to managed DNS, and then polled via the domain-verify-poller background task until DNS propagation is confirmed.