Address format
Inboxes use theopenmail.sh domain:
support@openmail.sh
- If you provide a
mailboxName, it becomes the local part of the address - If you omit it, we generate a random 8-character alphanumeric string
- Mailbox names must be 3–30 characters, lowercase alphanumeric with dots and hyphens allowed
agent@yourdomain.com)? See Custom domains.
Sender name
SetdisplayName when creating or updating an inbox to control how recipients see the sender. Without a display name, recipients see the raw email address. With a display name, the From header becomes Name <address>.
PATCH /v1/inboxes/:id.
Multi-tenant routing
Route inbound events byinbox_id. Map each inbox ID to your user/agent/container in your app.
Multi-tenant - One account, many inboxes. Create one inbox per agent and route by inbox_id. To confine an agent to the single inbox it owns, give it an inbox-scoped API key. To isolate a tenant that owns several inboxes, see the Multi-tenancy guide.
Multiple inboxes per user - You can create multiple inboxes for the same user. Webhooks include inbox_id so you can identify which inbox received the message.
Inbox-scoped API keys
Your account-wide key reaches every inbox. When one agent owns exactly one inbox, hand it an inbox-scoped key instead — the narrowest scope OpenMail offers:- It can read and send from that one inbox, including its threads, messages, and drafts. Every other inbox is invisible to it — even listing inboxes returns only the one it owns.
- It is read and send only. It cannot create, modify, or delete inboxes, and cannot rotate a webhook secret.
- It cannot mint or revoke keys, so a leaked key cannot widen its own reach.
forbidden if you need to handle it.
Minting requires an account-wide key — a pod- or inbox-scoped key cannot mint. The full token is returned once, at creation, and cannot be retrieved again. Listing returns only a masked tokenPrefix and last4.
Limits
Lifecycle
Deleting an inbox (DELETE /v1/inboxes/:id) permanently removes the inbox and all associated messages, threads, and attachments. This is not reversible.