Documentation Index
Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
π Quickstart
Connect to Notion with Nango and see data flow in 2 minutes.Create the integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Notion.
Authorize Notion
Go to Connections -> Add Test Connection -> Authorize, then log in to Notion. Later, youβll let your users do the same directly from your app.
Call the Notion API
Letβs make your first request to the Notion API (fetch a list of users). Replace the placeholders below with your secret key, integration ID, and connection ID:Or fetch credentials with the Node SDK or API.β
Youβre connected! Check the Logs tab in Nango to inspect requests.
- cURL
- Node
Implement Nango in your app
Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.
π Notion Integration Guides
Nango maintained guides for common use cases.- How to register your own Notion OAuth app
Register an OAuth app with Notion and obtain credentials to connect it to Nango
π§© Pre-built syncs & actions for Notion
Enable them in your dashboard. Extend and customize to fit your needs.Blocks
| Function name | Description | Type | Source code |
|---|---|---|---|
append-block-children | Append new child blocks to an existing block or page. | Action | π Github |
append-bulleted-list | Adds bulleted list items to a page. | Action | π Github |
append-callout-block | Adds a callout block with icon to a page. | Action | π Github |
append-code-block | Adds a code block with syntax highlighting to a page. | Action | π Github |
append-divider | Adds a horizontal divider to a page. | Action | π Github |
append-heading-block | Adds a heading block to a page. | Action | π Github |
append-todo-block | Adds a to-do/checkbox item to a page. | Action | π Github |
delete-block | Delete or archive a block by ID. | Action | π Github |
list-block-children | List child blocks for a page or block with pagination. | Action | π Github |
retrieve-block | Retrieve a single block by block ID. | Action | π Github |
retrieve-block-children | Gets paginated list of child blocks within a block or page. | Action | π Github |
update-block | Update a blockβs supported fields or rich text content. | Action | π Github |
Comments
| Function name | Description | Type | Source code |
|---|---|---|---|
create-comment | Create a comment on a page, block, or discussion thread | Action | π Github |
list-comments | List comments for a page or discussion thread. | Action | π Github |
retrieve-comment | Retrieve a Notion comment by comment ID | Action | π Github |
Data Sources
| Function name | Description | Type | Source code |
|---|---|---|---|
create-data-source | Create a Notion data source in its supported parent container. | Action | π Github |
list-data-source-templates | List templates available for a data source. | Action | π Github |
query-data-source | Query entries in a Notion data source using filters and sorts. | Action | π Github |
retrieve-data-source | Retrieve a Notion data source definition and schema. | Action | π Github |
update-data-source | Update a Notion data sourceβs title, description, or schema properties. | Action | π Github |
Databases
| Function name | Description | Type | Source code |
|---|---|---|---|
query-database-filtered | Retrieves pages from database matching filter conditions. | Action | π Github |
query-database-sorted | Retrieves pages from database in sorted order. | Action | π Github |
query-database | Retrieves filtered and sorted pages from a database with pagination. | Action | π Github |
retrieve-database | Gets database schema and column structure. | Action | π Github |
update-database | Modifies database title, description, or properties schema. | Action | π Github |
Pages
| Function name | Description | Type | Source code |
|---|---|---|---|
archive-page | Archive a page so it is removed from active workspace views. | Action | π Github |
create-page | Create a new Notion page with properties and optional children. | Action | π Github |
duplicate-page | Duplicate a Notion page and its content | Action | π Github |
get-page-as-markdown | Retrieve a page in the current markdown export format if available. | Action | π Github |
get-page-property-item | Retrieve a single property item value from a page. | Action | π Github |
move-page | Move a Notion page to a new parent location (under another page or into a database). | Action | π Github |
restore-page | Restore a page from trash so it returns to active workspace views. | Action | π Github |
retrieve-page-property | Gets a specific property value from a page with pagination support. | Action | π Github |
retrieve-page | Retrieve a Notion page and its property values. | Action | π Github |
update-page-markdown | Update page content using markdown commands. Supports targeted edits, full replacement, insertion, and range replacement. | Action | π Github |
update-page | Update page properties and other mutable page fields. | Action | π Github |
Search
| Function name | Description | Type | Source code |
|---|---|---|---|
search-databases | Searches only databases shared with the integration. | Action | π Github |
search-pages | Searches only pages shared with the integration. | Action | π Github |
search | Search pages, data sources, and other searchable Notion objects. | Action | π Github |
Users
| Function name | Description | Type | Source code |
|---|---|---|---|
get-bot-user | Retrieve the bot user associated with the current integration token. | Action | π Github |
get-user | Retrieve a Notion user or bot by user ID | Action | π Github |
list-users | List Notion users and bots available to the integration. | Action | π Github |
retrieve-user | Gets a single user by their ID. | Action | π Github |
Others
| Function name | Description | Type | Source code |
|---|---|---|---|
content-metadata | Sync page and data source metadata for broad Notion content discovery. | Sync | π Github |
data-source-entries | Sync page entries from a Notion data source with properties and timestamps | Sync | π Github |
data-source-templates | Sync templates available for a Notion data source | Sync | π Github |
data-sources | Sync Notion data source definitions and schema metadata. | Sync | π Github |
users | Sync Notion users and bots visible to the integration. | Sync | π Github |