createMailbox
createMailbox: Stage creation of a paid mailbox on a mail-enabled domain. BILLABLE: deducts from account balance; get a quote with getMailboxQuote and confirm the price with the user first. Requires authentication. Returns an actionId: present the summary to the user, then call executeConfirmedAction with the actionId if they approve. The result of the confirmed action contains the generated password EXACTLY ONCE; it can never be retrieved again, so show it to the user immediately (they can change it later with setMailboxPassword). Also share the client settings from the result (IMAP/SMTP/webmail).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | No | Payment term: 'MONTHLY' or 'ANNUAL' (default ANNUAL). | |
| domain | Yes | An ACTIVE mail-enabled domain from listMailDomains. | |
| localPart | Yes | The part of the address before the @; the full mailbox address becomes 'localPart@domain', e.g. 'user@example.com'. | |
| packageId | Yes | Mailbox plan id from listMailPlans; there is no default. | |
| sessionKey | No | Session key (osk_...) returned by checkDeviceLoginStatus. Pass it on every call when logged in via the in-chat device flow; omit when connected via OAuth. |