APIReferenceMailboxes
Start connecting a mailbox
Owner or admin only. Returns the Google or Microsoft consent URL. After consent the browser returns to `returnTo` with `mailbox=connected` or `mailbox=error`.
Owner or admin only. Returns the Google or Microsoft consent URL. After consent the browser returns to returnTo with mailbox=connected or mailbox=error.
Authorization
bearerAuth AuthorizationBearer <token>
A Supabase Auth user access token for the signed-in SignalDock user, sent as Authorization: Bearer <token>. Paste one from a signed-in session, or obtain one through the oauth2 scheme; the API accepts either.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/mailboxes/authorize" \ -H "Content-Type: application/json" \ -d '{ "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "provider": "gmail", "returnTo": "http://example.com" }'{ "authorizationUrl": "http://example.com"}