Integration Callback
Integrations
Integration Callback
Handle OAuth callback for an integration
POST
Integration Callback
Complete the OAuth flow for a third-party integration.
URL Parameters
string
required
The type of integration being connected. Valid values:
google-analyticsnotionslackzohogmail
Request
string
required
The OAuth authorization code
string
required
The state parameter from the OAuth flow
Response
The response format varies by integration type:Google Analytics
boolean
Whether the callback was successful
string
Success or error message
array
List of available Google Analytics properties
string
Temporary token for property selection
string
The redirect URI provided during connection
Notion
boolean
Whether the callback was successful
string
Success or error message
object
Connected Notion workspace details
string
The redirect URI provided during connection
Slack
boolean
Whether the callback was successful
string
Success or error message
object
Connected Slack team details
string
The redirect URI provided during connection
Zoho
boolean
Whether the callback was successful
string
Success or error message
object
Connected Zoho organization details
string
The redirect URI provided during connection
Gmail
boolean
Whether the callback was successful
string
Success or error message
string
The redirect URI provided during connection
Example
Error Codes
object
Invalid request
object
Invalid OAuth code or state
object
Server error
Notes
- This endpoint should be called after receiving the OAuth callback from the integration provider
- The
stateparameter is used to verify the OAuth flow and prevent CSRF attacks - For Google Analytics, you’ll need to make an additional call to select a property
- After successful callback, redirect the user to the
passthroughRedirectUriprovided during connection - The integration will be automatically enabled for the user after successful callback