Integration Callback
Handle OAuth callback for an integration
Complete the OAuth flow for a third-party integration.
URL Parameters
The type of integration being connected. Valid values:
google-analytics
notion
slack
zoho
gmail
Request
The OAuth authorization code
The state parameter from the OAuth flow
Response
The response format varies by integration type:
Google Analytics
Whether the callback was successful
Success or error message
List of available Google Analytics properties
Temporary token for property selection
The redirect URI provided during connection
Notion
Whether the callback was successful
Success or error message
Connected Notion workspace details
The redirect URI provided during connection
Slack
Whether the callback was successful
Success or error message
Connected Slack team details
The redirect URI provided during connection
Zoho
Whether the callback was successful
Success or error message
Connected Zoho organization details
The redirect URI provided during connection
Gmail
Whether the callback was successful
Success or error message
The redirect URI provided during connection
Example
Error Codes
Invalid request
Invalid OAuth code or state
Server error
Notes
- This endpoint should be called after receiving the OAuth callback from the integration provider
- The
state
parameter 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
passthroughRedirectUri
provided during connection - The integration will be automatically enabled for the user after successful callback