Inbox worker admin API
Admin endpoints to manage routing, list mailboxes, and replay webhooks.
All admin endpoints require:
Authorization: Bearer <ADMIN_TOKEN>Mailboxes
GET /admin/inboxes— list mailboxesGET /admin/inboxes?domain=<domain>— list mailboxes for a subdomainGET /admin/inboxes?status=processed— list processed mailboxes
curl "https://<worker-host>/admin/inboxes?limit=200" \
-H "Authorization: Bearer <ADMIN_TOKEN>"Messages
GET /admin/inboxes/:localPart/messages— list messagesGET /admin/inboxes/:localPart/messages/:id— parsed content + eml URLGET /admin/inboxes/:localPart/messages/:id/raw— download raw.eml
curl "https://<worker-host>/admin/inboxes/qa/messages?limit=50" \
-H "Authorization: Bearer <ADMIN_TOKEN>"Webhook retry
Repost a message to the main API and mark processed on success:
curl -X POST "https://<worker-host>/admin/inboxes/qa/messages/<id>/webhook" \
-H "Authorization: Bearer <ADMIN_TOKEN>"Routing helpers
POST /admin/catch-all/worker— enable routing to the workerGET /admin/email-routing/dns— list required DNS recordsPOST /admin/email-routing/dns/enable— add + lock DNS recordsPOST /admin/subdomains— enable a subdomain (builds<subdomain>.<EMAIL_DOMAIN>)
curl -X POST "https://<worker-host>/admin/catch-all/worker" \
-H "Authorization: Bearer <ADMIN_TOKEN>" \
-H "Content-Type: application/json" \
--data '{"enabled":true}'