Mailboxes
Create mailbox OAuth link
Returns a Google or Outlook OAuth URL for connecting a mailbox. After the user authorizes, they are redirected to redirectUrl. redirectUrl must be pre-allowlisted — contact Salesforge support to add your URL. For Google, set oauthApp to "gmail_api" to authorize through the Google-verified app; omitted, the legacy app is used.
post/workspaces/{workspaceID}/mailboxes/oauth-link
Request
- Base URLhttps://api.salesforge.ai/public/v2
- AuthAPI key in header Authorization
Path parameters
workspaceIDstring required
Workspace ID
Request body
Example request
{
"email": "user@example.com",
"oauthApp": "gmail_api",
"provider": "google",
"redirectUrl": "https://partner.example/oauth/callback"
}Response
OAuth authorization URL
Example response
{
"url": "https://accounts.google.com/o/oauth2/auth?..."
}Changes
No recorded changes to this operation across all 1 revision of this API.