OAuth app setup guide

Notion

Notion Labs, Inc.·self-serve·Library guide 2026-12-05·spot-checked
JSON

Completely self-serve OAuth setup with no mandatory app review, user caps, or verification required to connect external users.

Difficulty
1/5
Your hands-on time
15–30 min
Waiting on provider
none
sourcedS1
Evidence
2 tested · 16 sourced · 2 uncertain

Depends on what your agent does

self-serve

Workspace automation acting on specific shared pages via static API token

Internal API token / manual page sharing

Internal connections authenticate workspace-level requests using a static API token manually added to specific pages by a workspace owner. sourcedS1

self-serve

Personal CLI scripts and developer tooling acting directly as the creator

Personal access token

Personal access tokens allow scripts or CLIs to act as the user across the selected workspace without OAuth or page pickers. sourcedS1

self-serve

Team tools acting on behalf of users in pre-selected workspaces

OAuth capabilities (Read content, Update content, Insert content)

Scoped OAuth integrations can be authorized across specific selected workspaces chosen at creation time. sourcedS1S7

self-serve

Public AI agent accessing and updating user Notion pages and databasesthis guide

Capabilities (Read/Update/Insert content, user info)

Public OAuth integrations allow any external Notion user to connect their account. Standard OAuth usage does not require app review or Marketplace submission. sourcedS1S7S9

review required

Listing in the public Notion Marketplace directory

Marketplace listing approval

Listing the integration publicly on the official Notion Marketplace requires submitting integration details and undergoing review. uncertainS1

Stepsfor: Public AI agent accessing and updating user Notion pages and databases

1

Log in to Notion Developer Portal · ~5 min

Log in to your Notion account and navigate to the developer connections portal. testedS1S7S8S9A1

you
2

Create integration · ~5 min

Click 'New connection' or 'New integration', enter your application name, and select your development workspace. sourcedS7S8S9

you
3

Configure OAuth and scopes · ~5 min

Select OAuth / Public under distribution options and configure your HTTPS redirect URIs. Choose your installation scope (set to 'Any workspace' for general public access; note this cannot be changed later). sourcedS1S7S9

you
4

Set capabilities and extract credentials · ~5 min

In the Configuration / Capabilities tab, toggle the permissions needed (e.g., Read content, Update content, Insert content) and copy your OAuth Client ID and Client Secret. sourcedS1S4S7S8S9

you
5

Implement OAuth code exchange · ~10 min

Build the OAuth authorization redirect and handle the authorization code exchange against POST https://api.notion.com/v1/oauth/token. sourcedS1S4

agent can
What an agent can do for you
  • Generate authorization URLs and construct OAuth query parameters.
  • Implement the code exchange endpoint (/v1/oauth/token) with Basic auth encoding.
  • Store access tokens, bot IDs, and workspace IDs securely.
Where you take over
  • Log in through Notion's authentication screen.
  • Create the connection in the Developer Portal and select the development workspace.
  • Set the permanent installation scope and configure redirect URIs in the dashboard.

Requirements

A Notion account with a development workspace.testedS7S8S9A1
At least one valid redirect URI configured under the OAuth configuration section.sourcedS1S7S8S9
Selection of installation scope ('Any workspace' for public multi-tenant access or 'Or select 1 or more workspaces').sourcedS1S7

Nuances and gotchas

Installation scope cannot be modified after the integration is created. To change between scoped and public access, a new integration must be created.sourcedS1S7
Notion access tokens do not expire and the OAuth API does not return a refresh token.uncertainS9
Users must explicitly select which pages or databases to grant the integration access to using the page picker during the authorization flow, or manually share pages afterward.sourcedS1S7S9
Traditional OAuth scope query parameters are not passed in the authorize request; permissions are set centrally via capabilities in the developer dashboard.sourcedS1S7S9

If you get blocked

ProblemSelecting 'Or select 1 or more workspaces' prevents external users from installing the integration, and scope cannot be modified post-creation. sourcedS1S7
What to doCreate a new integration from scratch and choose the 'Any workspace' / public installation option.
ProblemMaking API calls to pages or databases that were not selected by the user during the OAuth flow or not shared with the connection results in an error. sourcedS1S7S9
What to doDirect the user to re-authorize the integration or manually use 'Add connections' from the page's top-right menu to share the target page.

What we could not verify

  • What are the formal review requirements and approval timelines if one chooses to submit the app to the public Notion Marketplace listing, and are privacy policy URLs required during creation of public non-Marketplace OAuth apps?

Evidence

Screenshot of https://app.notion.com/login?redirectURL=%2Fprofile%2Fintegrations
A1 · tested local Chrome (headless) · 2026-12-05

Opened https://www.notion.so/profile/integrations → landed on https://app.notion.com/login?redirectURL=%2Fprofile%2Fintegrations (“Notion - Log in”). A sign-in wall appeared; the agent stopped here (it never enters credentials). Headings: Your AI workspace. | Log in to your Notion account.

Screenshot of https://app.notion.com/login?redirectURL=%2Fprofile%2Fintegrations
A2 · tested local Chrome (headless) · 2026-12-05

Opened https://www.notion.so/profile/integrations/new → landed on https://app.notion.com/login?redirectURL=%2Fprofile%2Fintegrations (“Notion - Log in”). A sign-in wall appeared; the agent stopped here (it never enters credentials). Headings: Your AI workspace. | Log in to your Notion account.

S1Notion API authorizationread 2026-12-05
S6Notionunreadable
S8Notion configuration - Apideck3rd-partyread 2026-12-05
What the checks changed
  • Spot-check: Confirmed on developers.notion.com/guides/authorization/overview: “Marketplace submission or review is not required” to start authorizing users.
  • Spot-check: Correction found by the pipeline: the first model step suggested two Notion doc URLs that return 404 (e.g. /docs/create-a-public-integration). They were shown as dead and not cited.

Built with gemini-3.8-flash (search) + gemini-3.8-flash (writing). Labels are computed from the evidence each statement cites, never written by the model. How this works

Notion OAuth app guide · Greenlight