DEV

Notion

Notion Connection

Put Notion to Work with @Human Automations and @Human Agents

The Notion Connection documents all Triggers, Actions and Query Operations available for creating automations via the Notion API.

What can you do with the Notion Connection?

  • Connect to the Notion API in a few clicks

  • Use the related Notion Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Database Created

Triggers on: databases/database.created

Triggered when a new database is created in Notion.

Database Updated

Triggers on: databases/database.updated

Triggered when an existing database is updated in Notion.

Page Created

Triggers on: pages/page.created

Triggered when a new page is created in Notion.

Page Updated

Triggers on: pages/page.updated

Triggered when an existing page is updated in Notion.

Block Updated

Triggers on: blocks/block.updated

Triggered when a block is updated in Notion.

User Updated

Triggers on: users/user.updated

Triggered when a user's information is updated in Notion.

Comment Created

Triggers on: comments/comment.created

Triggered when a new comment is created in Notion.

Action Operations

Action: Create a Database

Action: Update a Database

Action: Create a Page

Action: Update a Page

Query Operations

Query: Retrieve a Database

Query: Retrieve a Page

Example link

Obtaining Access Credentials

To obtain a Personal Access Token (PAT) for Notion's system-to-system integration, follow these steps:

Prerequisites

  • A Notion account (free or paid).

  • Access to the Notion workspace where the integration will be used.

Steps to Generate a Notion PAT

  1. Log in to your Notion account at notion.so.

  2. Click on your profile icon (top-right) → Settings.

  3. Navigate to Connections.

  4. Click on Develop or manage integrations.

    • If prompted, confirm you want to create a new integration.

  5. Create a New Integration

  6. Enter a name (e.g., "API Access").

  7. Select the workspace where the integration will operate.

  8. Click Create.

  9. Click on Configure Integration Settings.

  10. After creation, you’ll see a secret token under Internal Integration Secret.

  11. Copy this token (treat it like a password—store securely).

    • This is your PAT for system-to-system access.

Configuring Webhooks

  1. Log in to your Notion account at notion.so.

  2. Click on your profile icon (top-right) → Settings.

  3. Navigate to Connections.

  4. Click on Develop or manage integrations.

  5. Select the integration you wish to configure.

  6. Click on the Webhooks tab in the sidebar.

  7. Click + Create a subscription.

  8. Enter your Webhook URL (must be a public HTTPS endpoint).

  9. Select the event types you want to subscribe to (e.g., page updates, database changes).

  10. Click Create subscription.

  11. Copy the Signature Secret provided to verify incoming webhook payloads.

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated