notion-integration

Installation
SKILL.md

Building a Notion integration

A Notion integration is a service that talks to the Notion API (https://api.notion.com/v1), almost always via the official SDK @notionhq/client. Source lives in integrations/notion-integration/. It is a thin layer between Notion and your product's SDK / public REST API — Notion supplies content and database structure; your API supplies the business logic. Read this before the first file; the command-level playbook is itsryanarmani/scripts scripts/notion-integration/README.md.

When to use

  • Triggers: 'build a Notion integration', 'Notion OAuth', 'public Notion integration', 'notion.so/integrations', 'query a Notion database', 'Notion API object_not_found', 'submit to the Notion integration gallery'.
  • Internal vs public integrations: internal tokens are one workspace, cannot be listed and cannot be converted. The API sees only pages granted to the integration.
  • Status and select filters and writes differ by property type; the API does not create status options; every property value is a typed envelope to unwrap.
  • Siblings: canva-app, zapier-integration, figma-plugin, browser-extension, connector-directory-submission.

The trap that wastes a day: internal vs public integration

Notion has two integration kinds and they are not interchangeable:

  • Internal — a secret token created at https://www.notion.so/my-integrations, good for ONE workspace (yours). No OAuth, no distribution, and it can never be listed in the gallery. There is no internal→public conversion.
  • Public — OAuth 2.0 with a client id + secret and registered redirect URIs. Any workspace can install it; this is the only kind the gallery accepts.

Rule: if there is any chance the integration ships to users or the gallery, start public from the first file. Each user authorizes via OAuth (GET https://api.notion.com/v1/oauth/authorize with response_type=code and owner=user); you exchange the code once (client.oauth.token) and store the returned access token per workspace. Building the v1 on an internal token "because it's simpler" means rebuilding auth the day you decide to distribute.

Installs
1
GitHub Stars
1
First Seen
Nov 15, 2026