Installation scope
Choose Or select 1 or more workspaces when creating your integration. Only those workspaces can install it, and it cannot be listed on the Marketplace. To make your app available to any workspace, create a public integration. Installation scope cannot be changed after creation. If you later need to make the app available to any workspace, create a new integration.Create an OAuth integration
1
Open the Developer portal
Go to the Developer portal. In the Build section, select Connections. This is also where you create OAuth integrations limited to selected workspaces.
2
Configure your integration
Select Create new connection. Enter the connection name, development workspace, and redirect URIs. Choose Or select 1 or more workspaces, select the workspaces, and choose the capabilities your app needs.
3
Get your OAuth credentials
Open the Configuration tab to find your OAuth client ID and OAuth client secret. Use them to implement the OAuth authorization flow.
How users authorize your app
When a user wants to use your OAuth integration, they go through an OAuth authorization flow:1
The user visits the connection’s authorization URL. Find this URL in the Configuration tab of your connection in the Developer portal.
2
Notion presents a prompt describing the connection’s capabilities — what it will be able to do in the user’s workspace.
3
The user selects which pages to grant the connection access to using the page picker.
4
After the user approves, Notion redirects them to your redirect URI with a temporary authorization code.
5
Your connection exchanges the code for an access token, which is used for all subsequent API requests on behalf of that user.
After a user authorizes a OAuth integration, only that user can interact with the connection in their workspace. If multiple members in a workspace want to use the same OAuth integration, each user needs to complete the authorization flow individually.
Next steps
Set up OAuth authorization
Implement the authorization flow and exchange codes for access tokens.
Set up content for users
Create pages and databases after a user authorizes your app. This works for both scoped and public integrations.