{ "success": true, "message": "Notion workspace connected successfully", "workspace": { "id": "workspace-id", "name": "My Workspace", "icon": "https://notion.so/icons/workspace.png" }, "passthroughRedirectUri": "https://your-app.com/oauth/callback" }
Handle OAuth callback for an integration
google-analytics
notion
slack
zoho
gmail
{ id: string name: string websiteUrl: string }[]
{ id: string name: string icon: string }
{ id: string name: string domain: string }
{ id: string name: string modules: string[] }
curl -X POST https://suada.ai/api/public/integrations/notion/callback \ -H "Content-Type: application/json" \ -d '{ "code": "oauth-code-from-provider", "state": "oauth-state-from-provider" }'
{ "error": "Missing required parameters" }
{ "error": "Invalid OAuth code" }
{ "error": "Failed to complete OAuth flow" }
state
passthroughRedirectUri
Was this page helpful?