Set Up OAuth for NotionBeta
Register Notion as an OAuth provider so users can authorize Notion workspace access from Haystack Enterprise Platform.
About This Task
The Notion template uses Notion's public OAuth endpoints. Notion integrations declare capabilities when you create the integration; scopes in Haystack Enterprise Platform should match the access you configured in Notion.
Prerequisites
- Make sure you meet the prerequisites for Configure External Connections.
- You need a Notion account with permission to create integrations.
Register the redirect URI from the Redirect URL field in the Add OAuth Provider dialog with your identity provider. Keep the default unless you embed the connect flow in your own frontend.
The callback is served by the deepset API, not the web app. On deepset Cloud, the default is https://api.cloud.deepset.ai/api/v2/connections/callback. On other deployments, use your organization's API base URL with the path /api/v2/connections/callback.
Create a Notion Integration
- Open Notion: My integrations and click New integration.
- Type a name, select the associated workspace, and choose the capabilities your use case needs.
- Open the integration settings and go to the OAuth section.
- Add the redirect URI from Haystack Enterprise Platform to the list of authorized redirect URIs.
- Copy the OAuth client ID and OAuth client secret (sometimes labeled Client ID and Client secret).
For details, see Notion authorization.
Register the Provider in Haystack Enterprise Platform
- Click your profile icon and choose Settings.
- Go to Organization and open Integrations.
- In External Connections, click Add OAuth Provider.
- Select the Notion template.
- Fill in the fields:
- Provider Type — keep
notionunless you register multiple Notion integrations. - Display Name — for example
Notion. Choose a name that will make it easy for users to identify the provider. - Client ID and Client Secret from the Notion integration.
- Authorization URL and Token URL — pre-filled to Notion's OAuth endpoints.
- Scopes — add scopes if your integration requires them beyond the Notion integration capabilities. Default scopes include
readandwriteaccess to the Notion workspace. Adjust scopes if your integration needs different permissions.
- Provider Type — keep
- Click Create.
What To Do Next
Was this page helpful?