Mailbox targeting for connected apps
Manual mailbox credentials always target their single mailbox. Omitmailbox_id when you use a manual smx_mbx_ credential.
Connected-app tokens can grant a set of mailboxes. Use GET /mailbox/mailboxes to list or search the granted set, then pass the selected mailbox’s id as mailbox_id on Mailbox API requests.
Self-registered agent tokens target their assigned mailbox. Omit mailbox_id when you use a pre-claim smx_agent_ token. Pre-claim tokens can read and receive mail, but they cannot send. After owner approval, an app-resource smx_agent_ token with email.send can send from the assigned mailbox.
mailbox_id, Sendmux returns 400 missing_parameter. If you pass a mailbox outside the grant, Sendmux returns 403 insufficient_permissions.
Capability discovery
UseGET /mailbox/session before planning a mailbox workflow. It returns the
selected mailbox, supported Mailbox API features, current state
tokens, request limits, and gated features. A gated feature is intentionally
unavailable through the Mailbox API.
gated fields are true when a feature is intentionally unavailable.