Skip to main content

Start the OAuth consent flow to connect an email account

POST 

/email-accounts/connect

Returns a single-use hosted consent URL. Redirect the browser to it: once the broker has signed in to Google or Microsoft, the browser comes back to returnUrl with emailAccountConnected set to success, already-connected or error. Requires the user access token of a broker; any other caller, including a client-credentials token, is refused with BROKER_NOT_FOUND. Connecting a shared mailbox requires the shared-account admin permission and a brokerage firm. Pass delegatedMailboxAddress to connect a Microsoft 365 shared mailbox through the signing-in user (Outlook only).

Request​

Responses​