> ## 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.

# Notion

> Integrate your application with the Notion API

## 🚀 Quickstart

Connect to Notion with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Notion*.

> [!NOTE]
>
> Nango has a [Nango-managed OAuth app](https://nango.dev/docs/guides/auth/auth-guide.md#nango-managed-oauth-apps) you can use in development and production. Select it when you create the integration.

**2. Authorize Notion**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then log in to Notion. Later, you'll let your users do the same directly from your app.

**3. 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 [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/v1/users" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>   endpoint: '/v1/users',
>   providerConfigKey: '<INTEGRATION-ID>',
>   connectionId: '<CONNECTION-ID>'
> });
>
> console.log(JSON.stringify(res.data, 2, null));
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/primitives/auth.md) to integrate Nango in your app.

To use your own OAuth app instead of the Nango-managed one, follow the setup guide linked below.

## 📚 Notion Integration Guides

Nango maintained guides for common use cases.

* [How to register your own Notion OAuth app](https://nango.dev/docs/api-integrations/notion/how-to-register-your-own-notion-api-oauth-app)\
  Register an OAuth app with Notion and obtain credentials to connect it to Nango

Official docs: [Notion API documentation](https://developers.notion.com/reference/intro)

## 🧩 Pre-built syncs & tools for Notion

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

### Others

| Function name | Description | Type |
| - | - | - |
| `append-block-children` | Append new child blocks to an existing block or page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `append-bulleted-list` | Adds bulleted list items to a page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `append-callout-block` | Adds a callout block with icon to a page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `append-code-block` | Adds a code block with syntax highlighting to a page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `append-divider` | Adds a horizontal divider to a page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `append-heading-block` | Adds a heading block to a page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `append-todo-block` | Adds a to-do/checkbox item to a page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `archive-page` | Archive a page so it is removed from active workspace views. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-comment` | Create a comment on a page, block, or discussion thread | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-database` | Creates a new database as subpage with defined properties schema. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-data-source` | Create a Notion data source in its supported parent container. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-page` | Create a new Notion page with properties and optional children. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-block` | Delete or archive a block by ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `duplicate-page` | Duplicate a Notion page and its content | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-bot-user` | Retrieve the bot user associated with the current integration token. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-page-as-markdown` | Retrieve a page in the current markdown export format if available. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-page-property-item` | Retrieve a single property item value from a page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-user` | Retrieve a Notion user or bot by user ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-block-children` | List child blocks for a page or block with pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-comments` | List comments for a page or discussion thread. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-data-source-templates` | List templates available for a data source. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-users` | List Notion users and bots available to the integration. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `query-database-filtered` | Retrieves pages from database matching filter conditions. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `query-database-sorted` | Retrieves pages from database in sorted order. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `query-database` | Retrieves filtered and sorted pages from a database with pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `move-page` | Move a Notion page to a new parent location (under another page or into a database). | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `query-data-source` | Query entries in a Notion data source using filters and sorts. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `restore-page` | Restore a page from trash so it returns to active workspace views. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `retrieve-block` | Retrieve a single block by block ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `retrieve-block-children` | Gets paginated list of child blocks within a block or page. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `retrieve-comment` | Retrieve a Notion comment by comment ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `retrieve-data-source` | Retrieve a Notion data source definition and schema. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `retrieve-database` | Gets database schema and column structure. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `retrieve-page-property` | Gets a specific property value from a page with pagination support. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `retrieve-page` | Retrieve a Notion page and its property values. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `retrieve-user` | Gets a single user by their ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `search-databases` | Searches only databases shared with the integration. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `search-pages` | Searches only pages shared with the integration. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `search` | Search pages, data sources, and other searchable Notion objects. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-block` | Update a block's supported fields or rich text content. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-data-source` | Update a Notion data source's title, description, or schema properties. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-database` | Modifies database title, description, or properties schema. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-page-markdown` | Update page content using markdown commands. Supports targeted edits, full replacement, insertion, and range replacement. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-page` | Update page properties and other mutable page fields. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `content-metadata` | Sync page and data source metadata for broad Notion content discovery. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `data-source-entries` | Sync page entries from a Notion data source with properties and timestamps | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `data-source-templates` | Sync templates available for a Notion data source | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `data-sources` | Sync Notion data source definitions and schema metadata. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `users` | Sync Notion users and bots visible to the integration. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.