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.
Create the public connection
Section titled “Create the public connection”- 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.
- Register your redirect URI(s) under the OAuth configuration section of the creation form.
- Open the connection’s Configuration tab and copy the OAuth client ID and client secret.
- 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).
Authorize
Section titled “Authorize”- Send the user to
https://api.notion.com/v1/oauth/authorizewithowner=user,client_id,redirect_uri,response_type=code, and (recommended) astatevalue. Do not send ascopeparameter — none exists. Example from the docs:https://api.notion.com/v1/oauth/authorize?owner=user&client_id=...&redirect_uri=...&response_type=code. - 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).
Exchange the code
Section titled “Exchange the code”POST https://api.notion.com/v1/oauth/tokenwith a JSON body ofgrant_type=authorization_code, thecode, and theredirect_uri(required whenever more than one redirect URI is registered). Authenticate the request with HTTP Basic: base64-encodedCLIENT_ID:CLIENT_SECRETin theAuthorizationheader — body client credentials are not documented. Include the requiredNotion-Versionheader (2026-03-11at retrieval).- Store the
access_tokenandrefresh_token; the response also carriesbot_id,workspace_id,workspace_name,workspace_icon,owner, andduplicated_template_id. Noexpires_inis documented.
Refresh
Section titled “Refresh”- To refresh,
POSTthe same token endpoint withgrant_type=refresh_tokenand therefresh_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.
Connect it to Publicus
Section titled “Connect it to Publicus”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.