Tear down a sending domain across AgentMail, Cloudflare, and the database. Cascade-deletes every inbox on the domain.
/api/email/domains/{id} with the update verb. See Update a sending domain to override the cached status without tearing the domain down.accounts row whose domain_id points at it. Agents should enumerate dependent inboxes (via listEmailAccounts) and confirm with the human before calling.External cleanup is best-effort. AgentMail + Cloudflare deletes are fire-and-forget; failures are logged but do not block the DB delete. Both are idempotent on retry.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Email domain (email_domains.id) UUID.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Domain deleted. Dependent email accounts are cascade-removed from the DB. AgentMail/Cloudflare cleanup best-effort.
true