Notion API Overview

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

Utilizing Notion's Public API for 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:

  • Pages: Create, update, and retrieve page content.
  • Databases: Manage database, properties, entries, and schemas.
  • Users: Access user profiles and permissions.
  • Comments: Handle page and inline comments.
  • Content Queries: Search through workspace content.
  • Authentication: Secure integrations with OAuth 2.0.
  • Link Previews: Customize how links appear when shared.

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.

What is a Notion Integration?

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.

Internal vs. 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.

  • Internal IntegrationsΒ are exclusive to a single workspace, accessible only to its members. They are ideal for custom workspace enhancements.
  • Public IntegrationsΒ are designed for a wider audience, usable across any Notion workspace. They cater to broad use cases and follow the OAuth 2.0 protocol for workspace access.

πŸ”‘

All integrations are initially internal and can be changed to public within a Workspace Owner's Integration settings.

Public integrations must undergo a Notion security review before publishing.

Key Differences

FeatureInternal IntegrationsPublic Integrations
ScopeConfined to a single, specific workspace.Available across multiple, unrelated workspaces.
User AccessOnly accessible by members of the workspace where it's installed.Accessible by any Notion user, regardless of their workspace.
CreationCreated by Workspace Owners within the integration dashboard.Initially created as internal, but can be made public through the integration's settings.
PermissionsWorkspace 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 ProtocolNot applicable, as access is limited to a single workspace.Uses the OAuth 2.0 protocol to securely access information across multiple workspaces.
Dashboard VisibilityVisible to Workspace Owners in the integration dashboard, including integrations created by others.-

What You Can Build: Integration Use Cases

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

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

  • Automated Notifications: Develop integrations that monitor Notion databases for changes. Upon detecting a change, these integrations can automatically send notifications various communication channels.
  • Github Synchronization: Create integrations that keep Notion issues in sync with GitHub issues.
  • External Data Import: Build integrations that import data from external sources directly into Notion databases. This can include importing customer data, project updates, or any other relevant information.

πŸ”—

Examples:

Link Preview Integrations

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

Identity Management Integrations (Enterprise Plans ONLY)

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

  • SCIM API for User and Group Management: Utilize the SCIM API to automate the provisioning and management of users and groups within enterprise workspaces, streamlining administrative tasks.
  • SAML SSO for Enhanced Security: Implement Single Sign-On (SSO) using SAML for a secure and convenient authentication process, simplifying access for users across the enterprise.

πŸ”—

Quick Links

Starting Your Integration Journey

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.

Key resources

  • Notion SDK for JavaScript: Leverage our SDK designed for JavaScript environments to simplify interactions with the REST API, making development more efficient.
  • Technology Partner Program: Have you developed a public integrations? Join our Technology Partner Program for access to dedicated support, exclusive distribution channels, and marketing opportunities.

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