# Mailboxes

The mailbox resources themselves: create/list/delete identities, settings and preferences, sharing grants, send-rate meters, and the mailbox-scoped event webhook.

- `POST` [Create an identity](/docs/api/mailboxes/post_IdentityCreate): An identity is a principal in an account: it owns stores (a mail store, calendars, contacts), holds credentials, and can be shared with.
- `GET` [List mailboxes](/docs/api/mailboxes/get_IdentityList): Lists mailboxes for the authenticated account.
- `GET` [Get identity and bound store usage](/docs/api/mailboxes/get_IdentityGet): Returns an identity with its bound stores (mail, calendars, contacts) and usage metrics.
- `PATCH` [Update mailbox settings](/docs/api/mailboxes/patch_IdentityUpdate): Updates mailbox storage quota, primary address label, and outbound sending limits; or, alone in its request, suspends or resumes the mailbox (suspended), or…
- `DELETE` [Delete a mailbox](/docs/api/mailboxes/delete_IdentityDelete): Soft-deletes a mailbox with a 7-day retention window for recovery.
- `GET` [List an identity's addresses](/docs/api/mailboxes/get_IdentityAddressList): Returns every address routed to this identity — what it may be addressed AT, for matching an iCalendar ATTENDEE or ORGANIZER line.
- `GET` [Get mailbox details and usage statistics](/docs/api/mailboxes/get_MailboxGet): Returns mailbox metadata, current storage usage, message counts, trash metrics, database size, and realtime socket connection stats.
- `GET` [Get identity preferences](/docs/api/mailboxes/get_PrefsGet): Returns client preferences (theme, language, signature, etc.) stored as a JSON object, along with the current version number for optimistic locking.
- `PUT` [Save identity preferences](/docs/api/mailboxes/put_PrefsPut): Updates or replaces the client preferences JSON object.
- `GET` [Get retention policy and preview](/docs/api/mailboxes/get_RetentionGet): Returns 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…
- `PUT` [Set retention window](/docs/api/mailboxes/put_RetentionPut): Sets 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.
- `DELETE` [Clear retention window](/docs/api/mailboxes/delete_RetentionDelete): Clears this mailbox's OWN retention window.
- `PUT` [Create or replace the mailbox's event webhook](/docs/api/mailboxes/put_MailboxEventWebhookSet): One URL per mailbox, all events, no filters.
- `GET` [Read the mailbox's event webhook](/docs/api/mailboxes/get_MailboxEventWebhookGet): The mailbox-scope event webhook: endpoint URL and delivery status.
- `DELETE` [Remove the mailbox's event webhook](/docs/api/mailboxes/delete_MailboxEventWebhookDelete): Deletes the hook: event batches stop immediately and nothing is retained.
- `POST` [Send a test event to the mailbox's event webhook](/docs/api/mailboxes/post_MailboxEventWebhookTest): Queues one webhook.test batch through the real delivery path.
- `PUT` [Create or replace the mailbox's message webhook](/docs/api/mailboxes/put_MailboxMessageWebhookSet): Every 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…
- `GET` [Read the mailbox's message webhook](/docs/api/mailboxes/get_MailboxMessageWebhookGet): Where each message that lands in this mailbox is POSTed, however it arrived.
- `DELETE` [Remove the mailbox's message webhook](/docs/api/mailboxes/delete_MailboxMessageWebhookDelete): Stops the POSTs: mail that lands from now on reaches the mailbox alone.
- `PUT` [Give another user access to this mailbox](/docs/api/mailboxes/put_MailSharePut): Lets another identity in the same account open this mailbox — the shared team inbox and delegated-assistant case.
- `DELETE` [Remove another user's access to this mailbox](/docs/api/mailboxes/delete_MailShareDelete): Takes away an identity's access to this mailbox.
- `GET` [List who has access to this mailbox](/docs/api/mailboxes/get_MailShareList): Returns everyone this mailbox has been shared with, oldest grant first, each with the rights they hold.
- `GET` [List mailboxes shared with you](/docs/api/mailboxes/get_SharedMailboxList): Returns every mailbox belonging to someone else that you have been given access to, oldest grant first, each with the rights you hold on it.
- `GET` [List what delivers to a mailbox](/docs/api/mailboxes/get_MailboxRoutingGet): Returns 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…
- `GET` [List the addresses a mailbox may send as](/docs/api/mailboxes/get_MailboxSendAsList): Returns 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…
- `POST` [Check whether a mailbox may send from an address](/docs/api/mailboxes/post_MailboxSenderCheck): Checks one From address through the same routing, ownership, credential scope and sending-state authorization as submission, including aliases, subaddresses…
- `GET` [Get outbound send rate limit usage](/docs/api/mailboxes/get_SendUsageGet): Returns outbound email quota usage and current rate limits for the mailbox over the rolling 24-hour window.
- `GET` [Get whether a mailbox may send](/docs/api/mailboxes/get_MailboxSendState): Returns 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…
- `POST` [Restore a deleted mailbox](/docs/api/mailboxes/post_IdentityRestore): Restores a soft-deleted mailbox from trash within its 7-day retention window.
