Skip to main content
POST
Create mailbox OAuth link

Authorizations

Authorization
string
header
required

Path Parameters

workspaceID
string
required

Workspace ID

Body

application/json

OAuth link request

OAuth link request

provider
enum<string>
required

Mail provider to connect: "google" or "outlook".

Available options:
google,
outlook
Example:

"google"

redirectUrl
string
required

HTTPS URL the user is redirected to after OAuth authorization. Must be pre-allowlisted — contact Salesforge support to add your URL.

Example:

"https://partner.example/oauth/callback"

email
string

Email address to pre-select on the provider consent screen.

Example:

"user@example.com"

Response

OAuth authorization URL

url
string
Example:

"https://accounts.google.com/o/oauth2/auth?..."