Start building with the Notion API (original) (raw)

Notion API Overview

Discover how to leverage Notion's Public API to build integrations.

A Notion workspace is a collaborative environment where teams can organize work, manage projects, and store information in a highly customizable way. Notion's REST API facilitates direct interactions with workspace elements through programming. Key functionalities include:

To make interactions within Notion workspaces programmatically, you must associate these actions with a Notion user. Notion facilitates this by allowing API requests to be linked to a "bot" user.

Developers create integrations to define a bot's capabilities, including authenticating API requests, deciding when to make requests, and setting the bot's read/write permissions. Essentially, using Notion's Public API involves creating an integration that outlines how a bot interacts with your workspace and assigns REST API requests to the bot.

There are two primary integration types:

For further details on integration possibilities and API specifics, proceed with the guide or consult the API reference. Check out our demos for practical examples.

A Notion integration, sometimes referred as a connection, enables developers to programmatically interact with Notion workspaces. These integrations facilitate linking Notion workspace data with other applications or the automation of workflows within Notion.

Integrations are installed in Notion workspaces and require explicit permission from users to access Notion pages and databases.

1800

Create Notion integrations that unlock new possibilities for teams.

Notion users have access to a vast library of existing integrations to enrich their experience further. For developers interested in creating custom solutions, Notion supports the development of both internal and public integrations. Both utilize the Notion API for workspace interactions.

Let's explore internal and public integrations.

Notion integrations come in two types: Internal and Public. Understanding the differences between them helps in choosing the right approach for your development needs.

πŸ”‘

Public integrations must undergo a Notion security review before publishing.

Feature Internal Integrations Public Integrations
Scope Confined to a single, specific workspace. Available across multiple, unrelated workspaces.
User Access Only accessible by members of the workspace where it's installed. Accessible by any Notion user, regardless of their workspace.
Creation Created by Workspace Owners within the integration dashboard. Created by Workspace Owners within the integration dashboard.
Permissions Workspace members explicitly grant access to their pages or databases via Notion’s UI. Users authorize access to their pages during the OAuth flow, or by sharing pages directly with the integration.
OAuth Protocol Not applicable, as access is limited to a single workspace. Uses the OAuth 2.0 protocol to securely access information across multiple workspaces.
Dashboard Visibility Visible to Workspace Owners in the integration dashboard, including integrations created by others. -

Notion’s REST API opens up a world of possibilities for integrations, ranging from enhancing internal workflow to creating public-facing applications. Here’s a closer look at some of the innovative integrations developers have built with Notion:

Data integrations leverage the Notion API to automate data flow between Notion and other systems.

πŸ”—

Examples:

Enhance the sharing experience within Notion with Link preview integrations, offering a glimpse into the content of shared links:

Link preview of a GitHub PR

Link Preview of a GitHub PR.

Create integrations that allow for the customization of how shared links are presented in Notion, providing context and enhancing engagement.

πŸ”‘

Link Preview Integrations differ from public integrations. Review the Link Preview guide.

πŸ›‘

To build a Link Preview integration, developers must first apply for access to the feature through the Notion Link Preview API request form.

Link Preview integrations published for distribution require a review from Notion's platform and security teams.

πŸ”—

Quick Links

For enterprise-level workspaces, Notion offers advanced identity management capabilities:

πŸ”—

Quick Links

Embarking on building an integration with Notion? Begin with our foundational Build your first integration guide. As you become more familiar with the basics, expand your knowledge and skills with in-depth guides on Authorization, Page content, and Databases.

Explore these resources and join the Notion Devs Slack community to share your projects, gain insights from fellow developers, and discover new ways to enhance Notion with integrations.

πŸ”—

Quick Links

Updated 11 months ago