Mailboxes
The mailbox resources themselves: create/list/delete identities, settings and preferences, sharing grants, send-rate meters, and the mailbox-scoped event webhook.
TypeScript SDK
openemail.identitiesTypeScript SDKopenemail.mailboxesTypeScript SDKopenemail.mailboxShares- POSTCreate an identityAn identity is a principal in an account: it owns stores (a mail store, calendars, contacts), holds credentials, and can be shared with.
- GETList mailboxesLists mailboxes for the authenticated account.
- GETGet identity and bound store usageReturns an identity with its bound stores (mail, calendars, contacts) and usage metrics.
- PATCHUpdate mailbox settingsUpdates mailbox storage quota, primary address label, and outbound sending limits; or, alone in its request, suspends or resumes the mailbox (suspended), or…
- DELETEDelete a mailboxSoft-deletes a mailbox with a 7-day retention window for recovery.
- GETList an identity's addressesReturns every address routed to this identity — what it may be addressed AT, for matching an iCalendar ATTENDEE or ORGANIZER line.
- GETGet mailbox details and usage statisticsReturns mailbox metadata, current storage usage, message counts, trash metrics, database size, and realtime socket connection stats.
- GETGet identity preferencesReturns client preferences (theme, language, signature, etc.) stored as a JSON object, along with the current version number for optimistic locking.
- PUTSave identity preferencesUpdates or replaces the client preferences JSON object.
- GETGet retention policy and previewReturns the time-based retention window in force for this mailbox (its own, else the account default, else none), where it came from, the platform floor, when…
- PUTSet retention windowSets this mailbox's OWN retention window in days — the owning account key or a system key; an app password may read the policy but not set it.
- DELETEClear retention windowClears this mailbox's OWN retention window.
- PUTCreate or replace the mailbox's event webhookOne URL per mailbox, all events, no filters.
- GETRead the mailbox's event webhookThe mailbox-scope event webhook: endpoint URL and delivery status.
- DELETERemove the mailbox's event webhookDeletes the hook: event batches stop immediately and nothing is retained.
- POSTSend a test event to the mailbox's event webhookQueues one webhook.test batch through the real delivery path.
- PUTCreate or replace the mailbox's message webhookEvery message that lands in this mailbox is POSTed here (the incoming-email payload, its signing and retries), however it got there: any of its addresses, a…
- GETRead the mailbox's message webhookWhere each message that lands in this mailbox is POSTed, however it arrived.
- DELETERemove the mailbox's message webhookStops the POSTs: mail that lands from now on reaches the mailbox alone.
- PUTGive another user access to this mailboxLets another identity in the same account open this mailbox — the shared team inbox and delegated-assistant case.
- DELETERemove another user's access to this mailboxTakes away an identity's access to this mailbox.
- GETList who has access to this mailboxReturns everyone this mailbox has been shared with, oldest grant first, each with the rights they hold.
- GETList mailboxes shared with youReturns every mailbox belonging to someone else that you have been given access to, oldest grant first, each with the rights you hold on it.
- GETList what delivers to a mailboxReturns the addresses that deliver mail to this mailbox, and whether it may send as each: its primary address, its other routes and their alias-domain…
- GETList the addresses a mailbox may send asReturns the addresses this mailbox may use as From, primary first: its routed addresses on domains that may send, then @domain wherever a catch-all on a…
- POSTCheck whether a mailbox may send from an addressChecks one From address through the same routing, ownership, credential scope and sending-state authorization as submission, including aliases, subaddresses…
- GETGet outbound send rate limit usageReturns outbound email quota usage and current rate limits for the mailbox over the rolling 24-hour window.
- GETGet whether a mailbox may sendReturns canSend and, when it is false, sendHold: the answer /auth/verify gives a login typed as the mailbox's primary address, from the same function, for a…
- POSTRestore a deleted mailboxRestores a soft-deleted mailbox from trash within its 7-day retention window.
Query domain delivery event log GET
Returns paginated detailed delivery events and attempt history for a domain with filtering by time range, outcome, source, mailbox, or the prepared email that…
Create an identity POST
An identity is a principal in an account: it owns stores (a mail store, calendars, contacts), holds credentials, and can be shared with. It takes one of two…