Skip to content
Docs

Connecting Notion via OAuth 2.0 (public connection)

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Notion’s own documentation: Authorization, Create a token, and Refresh a token. Retrieved 2026-07-03.

  1. Open the Developer portal at <https://app.notion.com/developers/connections> and create a new public connection, filling out the form with your connection details.
  2. Register your redirect URI(s) under the OAuth configuration section of the creation form.
  3. Open the connection’s Configuration tab and copy the OAuth client ID and client secret.
  4. Under the connection’s capabilities, select the minimum content/comment/user capabilities your flows need — Notion has no OAuth scopes; capabilities plus the pages the user shares are the whole permission model (Capabilities).
  1. Send the user to https://api.notion.com/v1/oauth/authorize with owner=user, client_id, redirect_uri, response_type=code, and (recommended) a state value. Do not send a scope parameter — none exists. Example from the docs: https://api.notion.com/v1/oauth/authorize?owner=user&client_id=...&redirect_uri=...&response_type=code.
  2. The user picks which pages to grant access to (or duplicates your template, if the connection offers one — the duplicated page is shared with the connection automatically and returned as duplicated_template_id).
  1. POST https://api.notion.com/v1/oauth/token with a JSON body of grant_type=authorization_code, the code, and the redirect_uri (required whenever more than one redirect URI is registered). Authenticate the request with HTTP Basic: base64-encoded CLIENT_ID:CLIENT_SECRET in the Authorization header — body client credentials are not documented. Include the required Notion-Version header (2026-03-11 at retrieval).
  2. Store the access_token and refresh_token; the response also carries bot_id, workspace_id, workspace_name, workspace_icon, owner, and duplicated_template_id. No expires_in is documented.
  1. To refresh, POST the same token endpoint with grant_type=refresh_token and the refresh_token, using the same HTTP Basic authentication. Per the docs, “Refreshing an access token will generate a new access token and a new refresh token” — store both replacements.

Operational notes: call the API as Authorization: Bearer <access_token> with the Notion-Version header on every request; each workspace user must individually authorize a public connection.

Open Connections under Credentials, choose Notion, and pick Notion OAuth 2.0 (public connections). Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Notion in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.