What it enables
Connecting your Notion workspace allows you to:- Access your Notion pages from within Forge widgets
- Browse page hierarchies including parent and child pages
- Integrate Notion content into your personalized dashboard
Setup Instructions
Create a Notion Integration
- Go to Notion Integrations
- Click New integration
- Fill in the integration details:
- Name:
Forge(or your preferred name) - Associated workspace: Select your workspace
- Logo: Optional - upload a logo for your integration
- Name:
Configure Integration Capabilities
Set the following capabilities for your integration:
- Content Capabilities:
- Read content: ✓ (required)
- Update content: Optional
- Insert content: Optional
- User Capabilities: Leave unchecked unless needed
- Comment Capabilities: Leave unchecked unless needed
Forge primarily needs read access to fetch and display your Notion pages. Additional capabilities are optional based on your needs.
Get Integration Credentials
After creating the integration:
- You’ll see your Integration Token (also called Secret)
- Copy the OAuth client ID and OAuth client secret from the integration settings
- Note the Authorization URL and Token URL (these are standard Notion URLs)
Configure Redirect URI
In your Notion integration settings:
- Navigate to the OAuth Domain & URIs section
- Add your redirect URI:
- Development:
http://localhost:3000/api/auth/callback/notion - Production:
https://yourdomain.com/api/auth/callback/notion
- Development:
- Save the changes
Connect Your Workspace
After configuring the integration:- Navigate to Settings in your Forge dashboard
- Click Connect Notion Account
- Select the pages you want to grant access to
- Click Allow access
You’ll need to explicitly share pages with your Forge integration in Notion. The integration can only access pages that have been shared with it.
Sharing Pages with Forge
To allow Forge to access specific Notion pages:- Open the page in Notion
- Click Share in the top right
- Click Invite
- Search for your Forge integration by name
- Select the integration and choose access level (usually Read is sufficient)
- Click Invite
How Forge Accesses Your Pages
Forge uses the Notion API to:- Search for pages you’ve granted access to
- Fetch page properties and titles
- Retrieve child pages and page hierarchies
- Display page content in widgets
2022-06-28 and respects all Notion API rate limits and best practices.
Account Linking
Notion is configured as a trusted provider for account linking in Forge:- You can link Notion to an existing Forge account
- Multiple OAuth providers can be connected to one user
- Notion can coexist with Google and GitHub integrations
Managing Your Connection
From the Settings page:- View status: Check if your Notion workspace is connected
- Disconnect: Revoke access and remove the integration
- Reconnect: Re-authorize if your access token expires
Troubleshooting
Authorization Failed
If you can’t connect your Notion account:- Verify the redirect URI in your Notion integration exactly matches your application URL
- Ensure
NOTION_CLIENT_IDandNOTION_CLIENT_SECRETare correctly set - Check that your integration is active in Notion
No Pages Found
If Forge can’t find your pages:- Make sure you’ve shared the pages with your Forge integration in Notion
- The integration can only see pages explicitly shared with it
- Try disconnecting and reconnecting to refresh the connection
Access Token Expired
If you see “Notion integration missing or expired” errors:- Disconnect your Notion account from Forge Settings
- Reconnect to generate a fresh access token
- Verify your integration is still active in Notion settings
API Reference
Forge makes the following API calls to Notion:POST /v1/search- Search for pages in your workspaceGET /v1/blocks/{block_id}/children- Fetch child pages- Uses
Notion-Version: 2022-06-28header for API compatibility
All API requests include proper authentication using Bearer tokens obtained during the OAuth flow.