For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Fork this repoGet a demo
  • Docs
    • Welcome
    • Quickstart
    • Concepts
    • Search
    • MCP Server
    • CLI
    • Agent Skills
    • Connect
    • Add New Connector
    • Rate Limits
      • Overview
      • Airtable
      • Apollo
      • Asana
      • Attio
      • Bitbucket
      • Box
      • Calcom
      • Clickup
      • Coda
      • Confluence
      • Ctti
      • Document360
      • Dropbox
      • Fireflies
      • Freshdesk
      • Github
      • Gitlab
      • Gmail
      • Google Calendar
      • Google Docs
      • Google Drive
      • Google Slides
      • Hubspot
      • Intercom
      • Jira
      • Linear
      • Monday
      • Notion
      • Onedrive
      • Onenote
      • Outlook Calendar
      • Outlook Mail
      • Pipedrive
      • Powerpoint
      • Salesforce
      • Servicenow
      • Sharepoint
      • Shopify
      • Slab
      • Slack
      • Slite
      • Stripe
      • Teams
      • Todoist
      • Trello
      • Word
      • Zendesk
      • Zoho Crm
      • Zoom
  • API Reference
LogoLogo
Fork this repoGet a demo
On this page
  • Configuration
  • Authentication
  • Configuration Options
  • Data Models
DocsConnectors

Notion

Was this page helpful?
Edit this page
Previous

Onedrive

Next
Built with
Notion logo

Notion

This connector enables AI agents and RAG systems to retrieve context from Notion through Airweave’s unified search layer.

Configuration

Notion source connector integrates with the Notion API to extract and synchronize content.

Connects to your Notion workspace.

It provides comprehensive access to databases, pages, and content with advanced content aggregation, lazy loading, and file processing capabilities for optimal performance.

View Source Code

Explore the Notion connector implementation

Authentication

This connector uses OAuth 2.0 authentication. You can connect through the Airweave UI or API using the OAuth flow.

Supported authentication methods:

  • OAuth Browser Flow (recommended for UI)
  • OAuth Token (for programmatic access)
  • Auth Provider (enterprise SSO)

Configuration Options

This connector does not have any additional configuration options.

Data Models

The following data models are available for this connector:

NotionDatabaseEntity

Schema for a Notion database.

FieldTypeDescription
database_idstrThe ID of the database.
titlestrThe title of the database
created_timeOptional[datetime]When the database was created.
updated_timeOptional[datetime]When the database was last edited.
descriptionstrThe description of the database
propertiesDict[str, Any]Database properties schema
properties_textOptional[str]Human-readable schema description
parent_idstrThe ID of the parent
parent_typestrThe type of the parent (workspace, page_id, etc.)
iconOptional[Dict[str, Any]]The icon of the database
coverOptional[Dict[str, Any]]The cover of the database
archivedboolWhether the database is archived
is_inlineboolWhether the database is inline
urlstrThe URL of the database
NotionPageEntity

Schema for a Notion page with aggregated content.

FieldTypeDescription
page_idstrThe ID of the page.
parent_idstrThe ID of the parent
parent_typestrThe type of the parent (workspace, page_id, database_id, etc.)
titlestrThe title of the page
created_timeOptional[datetime]When the page was created.
updated_timeOptional[datetime]When the page was last edited.
contentOptional[str]Full aggregated content
propertiesDict[str, Any]Formatted page properties for search
properties_textOptional[str]Human-readable properties text
property_entitiesList[Any]Structured property entities
filesList[Any]Files referenced in the page
iconOptional[Dict[str, Any]]The icon of the page
coverOptional[Dict[str, Any]]The cover of the page
archivedboolWhether the page is archived
in_trashboolWhether the page is in trash
urlstrThe URL of the page
content_blocks_countintNumber of blocks processed
max_depthintMaximum nesting depth of blocks
NotionPropertyEntity

Schema for a Notion database page property.

FieldTypeDescription
property_keystrStable unique identifier for the property entity.
property_idstrThe ID of the property
property_namestrThe name of the property
property_typestrThe type of the property
page_idstrThe ID of the page this property belongs to
database_idstrThe ID of the database this property belongs to
valueOptional[Any]The raw value of the property
formatted_valuestrThe formatted/display value of the property
NotionFileEntity

Schema for a Notion file.

Reference: https://developers.notion.com/reference/file-object

FieldTypeDescription
file_idstrID of the file in Notion
file_namestrDisplay name of the file
expiry_timeOptional[datetime]When the file URL expires (for Notion-hosted files)
captionstrThe caption of the file
web_url_valueOptional[str]Link to view/download the file.