Skip to main content

Notion Connector

Connect to Notion to index pages, databases, and workspace content.

Overview​

The Notion connector allows you to:

  • Index pages and databases
  • Traverse nested page structures
  • Sync database properties
  • Support multiple workspaces

Prerequisites​

  • Notion account
  • Workspace access
  • OAuth authorization

Authentication​

OAuth 2.0​

  1. Click Connect with Notion
  2. Select workspace
  3. Choose pages to share
  4. Authorize access

Internal Integration Token​

As an alternative to OAuth, you can use a Notion Internal Integration Token:

  1. Go to Notion Integrations
  2. Create a new integration
  3. Copy the Internal Integration Token (integration_token)
  4. Share the desired pages/databases with the integration
  5. Enter the token in ZenSearch

Page Selection​

During OAuth, select which pages ZenSearch can access:

  • Select individual pages
  • Select entire databases
  • Access flows down to child pages

Configuration​

SettingDescription
WorkspaceConnected workspace
Root PagesStarting pages for sync
root_page_idsstring[] — Specific root page IDs to sync
database_idsstring[] — Specific database IDs to sync
Include DatabasesSync database entries
include_databasesboolean — Whether to include databases in sync
include_subpagesboolean — Whether to traverse and include subpages
max_depthinteger — Maximum recursion depth for page traversal
include_imagesboolean — Enable OCR processing for images
Traverse DepthHow deep to follow links

Setup Steps​

  1. Add Connector: Knowledge → Add Data Source → Notion
  2. Authorize: Connect with Notion OAuth
  3. Select Pages: Choose root pages/databases
  4. Configure Depth: Set traversal options
  5. Test & Create: Verify and save

Content Indexed​

ContentIncluded
PagesYes
DatabasesYes
Database itemsYes
Nested pagesYes
Block contentYes
CommentsOptional

Database Handling​

Notion databases are indexed as:

  • Database structure (schema)
  • Individual entries as documents
  • Properties as metadata

Nested Page Traversal​

ZenSearch follows page links:

Root Page
├── Child Page 1
│ └── Grandchild Page
├── Child Page 2
└── Linked Database

Best Practices​

  1. Share root workspace pages for broad access
  2. Use specific pages for focused indexing
  3. Include databases for structured data
  4. Set appropriate traversal depth

Troubleshooting​

No pages found: Ensure pages were shared during OAuth

Missing content: Check page sharing settings in Notion

Incomplete databases: Verify database was selected during auth