Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.notion.com/llms.txt

Use this file to discover all available pages before exploring further.

Using the Notion API

Notion connections let you connect your workspace to external tools and automate workflows through code. With the REST API, you can read, create, and update nearly everything in a workspace — pages, databases, users, comments, and more. When you create a connection, you define what it can do: which API endpoints it can call, what content it can read or write, and how it authenticates. Each connection gets its own credentials and its own set of permissions.

What is a Notion connection?

A Notion connection — sometimes called an integration — connects your workspace to external apps and tools. That could be a SaaS product, an automation script, or a custom tool you’ve built. Connections are added to Notion workspaces and require explicit permission from users to access Notion pages and databases.
Notion already has a library of connections you can browse. For developers who want to build their own, Notion supports both internal and public connections — both powered by the same REST API.

Connection types

Notion connections come in two types:
  • Internal connections are scoped to a single workspace and use a static API token. They’re ideal for custom automations and workflows — things like syncing data, sending notifications, or building internal dashboards.
  • Public connections use OAuth 2.0 for authentication. At creation time, you choose their installation scope: Any workspace (any Notion user can install; Marketplace-eligible) or Selected workspaces only (restricted to workspaces you select; not Marketplace-eligible).
Public connections must undergo a Notion security review before being listed on the Marketplace. You can create and use a public connection without listing it.

Comparison

FeatureInternal connectionsPublic connections
Installation scopeSingle workspace.Any workspace, or a specific set of workspaces chosen at creation time. Scope can’t change after creation.
User accessOnly members of the workspace where it’s installed.Any user in a workspace where the connection is allowed to install.
Content accessGranted directly to the connection, not tied to any specific user.Users choose which pages to share during the OAuth flow or via the Add connections menu.
AuthenticationStatic API token.OAuth 2.0.
Looking for SCIM or SAML SSO?Enterprise identity management (user provisioning, group management, and Single Sign-On) is covered in Notion’s Help Center, not in these API docs.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/arrowChevronDoubleForward.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=e9dad4152e1d3bf11e6a8404d9504665

Provision users and groups with SCIM

https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/arrowChevronDoubleForward.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=e9dad4152e1d3bf11e6a8404d9504665

SAML SSO configuration

Shared concepts

All connection types share a few core concepts.

Capabilities

Every connection has a set of capabilities that control what it can do — read content, update content, insert content, read comments, and more. You configure capabilities when you create a connection, and you can update them later. See the Capabilities reference for the full list.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/page.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=2d9752eedbbf14b504929f853c3dcd12

Pages

Create, update, and retrieve page content.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/databaseEmbed.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=7b907de012695ed2c9dba2c6505536a0

Databases

Manage database, properties, entries, and schemas.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/viewTable.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=8b8f0d1339820228c542e78d8fb372aa

Views

Create and configure database views programmatically.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/pathRoundEnds.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=f1b9491091d34c2249a03218696218a3

Data sources

Manage data sources, properties, entries, and schemas.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/arrowTrayUp.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=3b991e18c85512f06c2d7214acf94f12

File uploads

Upload and attach files to pages and databases.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/comment.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=58788fe12adbfeb3cd20b7c30d100921

Comments

Handle page and inline comments.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/magnifyingGlass.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=532b9d39e18feeffe9c342c0ebab7da6

Content queries

Search through workspace content.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/people.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=9db041f17fd02578d17a1e9a633f4c46

Users

Access user profiles and permissions.

Content access

Connections must be explicitly granted access to pages and databases before they can interact with them. The mechanism differs by type:
  • Internal connections can be granted access in two ways: the connection owner can add pages directly from the Content access tab in the Creator dashboard, or workspace members can share pages via the Add connections menu in Notion.
  • Public connections use the OAuth page picker, where users select which pages to grant access to during the authorization flow.
See the Internal connections and Public connections guides for specifics on how content access works for each type.

Webhooks

Connections can subscribe to real-time events — like page updates, property changes, and new comments — via webhooks. This allows your connection to react to changes in Notion without polling the API. See the Webhooks guide for details on setting up webhook subscriptions.

Starting your connection journey

We recommend starting with an internal connection — it’s the fastest way to begin building. You get an API token immediately and can focus entirely on using the API within your workspace, without worrying about OAuth or Marketplace listing. You can always create a public connection later if you need multi-workspace support. Here’s a guided path through the documentation:
1
Quickstart — Build your first connection with a hands-on tutorial.
2
Internal connections — Understand how internal connections work, including the permissions model.
3
Public connections — Learn how public connections work, including installation scope and the OAuth flow.
4
Authorization — Implement the OAuth 2.0 flow for public connections.
5
Handling API keys — Secure and manage your API tokens in production.
6
Preparing for users — Set up databases, pages, and views automatically when users install your connection.
7
List on the Marketplace — Make your public connection discoverable to all Notion users.

Resources

Explore the links below to get started, and join the Notion Devs Slack community to share your projects and connect with fellow developers.
https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/code.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=2601b12ff19455ce6c63331bfbcc62c0

API reference

Notion SDK for JavaScript

https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/code.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=2601b12ff19455ce6c63331bfbcc62c0

Starter templates

https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/cube.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=ca03d98b0912c199f06d1110d9c2f64b

Postman collection

https://mintcdn.com/notion-demo/yKfkO8UsVZTLLPNp/icons/nds/questionMarkCircle.svg?fit=max&auto=format&n=yKfkO8UsVZTLLPNp&q=85&s=20159b5b3d48676a4735f2c3f9fdda77

FAQs

Notion Devs Slack