Skip to content
Last updated

Notion integration

Integrating Notion with Frontegg allows your application to authenticate users via OAuth 2.0 and interact with their Notion workspaces — reading pages, creating content, querying databases, and posting comments on their behalf.


Prerequisites

Connect Notion

Step 1: Open the Notion integrations portal

Navigate to notion.so/my-integrations. Sign in with your Notion account if prompted, then click Create a new integration.

Notion integrations portal

Step 2: Fill in the integration details

Fill in the following fields:

  • Integration name: Enter a name for your integration (for example, Frontegg Integration).
  • Icon: Upload a square PNG or JPG image (512×512 px recommended).
  • Associated workspace: Select the workspace where you will test and develop this integration.

Notion new integration form

Step 3: Configure redirect URIs

In the Authorization (OAuth) section, enter the following redirect URIs one at a time and press Enter after each:

  • https://YOUR_MCP_GATEWAY_URL/integration-callback

Click Create to submit the form.

Notion redirect URIs configuration

Step 4: Integration created

A confirmation dialog appears. Click Configure integration settings to proceed to the integration's settings page.

Notion integration created dialog

Step 5: Copy your OAuth Client ID

On the settings page, find the Authorization (OAuth) section. Your OAuth Client ID is displayed there. Click Copy to copy it for use in the Frontegg portal.

Notion OAuth Client ID

Step 6: Copy your OAuth Client Secret

Click Show next to OAuth Client Secret, confirm the prompt, then click Copy to save the secret.

Keep your credentials secure

The Client Secret is shown only once. Store it immediately in a secure location. Never share or commit it to version control.

Notion OAuth Client Secret

Step 7: Configure capabilities

Scroll down to the Capabilities section and select the capabilities your integration requires. Notion uses capability-based permissions instead of traditional OAuth scopes — the selected capabilities are shown to users when they authorize your integration.

CapabilityDescription
Read contentRead pages, databases, and blocks
Update contentUpdate existing pages and blocks
Insert contentCreate new pages, databases, and blocks
Read commentsRead comments on blocks and pages
Insert commentsCreate comments on blocks and pages
Read user information including email addressesAccess user profile information and email addresses

Notion capabilities configuration

Step 8: Save the integration

Click Save to apply the capability settings. A confirmation message appears when the changes are saved.

Notion integration saved

Configure the Frontegg portal

Once you have your OAuth Client ID and OAuth Client Secret, configure the integration in the Frontegg portal:

  1. Open the Frontegg portal and navigate to [ENVIRONMENT]IntegrationsNotion.
  2. Enter the OAuth Client ID in the Client ID field and the OAuth Client Secret in the Client Secret field.
  3. Select the required capabilities.
  4. Click Save.

Additional resources