Notion

All-in-one workspace for notes, tasks, wikis and more

Go to site
Explore
/
Apps
/
Notion

Notion API Integrations

Build and run workflows using the Notion API. Use 1000s of open source triggers and actions across 900+ apps. Or write custom code to integrate any app or API in seconds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    notion: {
      type: "app",
      app: "notion",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.notion.com/v1/users/me`,
      headers: {
        Authorization: `Bearer ${this.notion.$auth.oauth_access_token}`,
        "Notion-Version": `2021-08-16`,
      },
    })
  },
})
Append Block to Parent with Notion API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Notion
 
Try it
Send Message (Advanced) with Discord Webhook API on New Database from Notion API
Notion + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Database from Notion API
Notion + Google Sheets
 
Try it
Append Block to Parent with Notion API on New Item in Feed from RSS API
RSS + Notion
 
Try it
Append Block to Parent with Notion API on New Message from Discord API
Discord + Notion
 
Try it
New Database from the Notion API

Emit new event when a database is created. Note: Databases must be shared with your Pipedream Integtration to trigger event.

 
Try it
New Page in Database from the Notion API

Emit new event when a page in a database is created

 
Try it
Updated Page ID from the Notion API

Emit new event when a selected page is updated

 
Try it
Updated Page in Database from the Notion API

Emit new event when a page in a database is updated. To select a specific page, use Updated Page ID instead

 
Try it
Append Block to Parent with the Notion API

Creates and appends new blocks to the specified parent. See the docs

 
Try it
Create Page with the Notion API

Creates a page from a parent page. The only valid property is title. See the docs

 
Try it
Create Page from Database with the Notion API

Creates a page from a database. See the docs

 
Try it
Find a Page with the Notion API

Searches for a page by its title. See the docs

 
Try it
Query Database with the Notion API

Query a database. See the docs

 
Try it

Troubleshooting

Note: After creating a new database, please reconnect your account and select it to enable access to Pipedream.

Please reach out to the Pipedream team with any technical issues or questions about the Notion integration. We're happy to help!

Authentication

Notion uses OAuth authentication. When you connect your Notion account, Pipedream will open a popup window where you can sign into Notion and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Notion API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. authorization
    GEThttps://api.notion.com/v1/oauth/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}&owner=user
  2. accessToken
    POSThttps://api.notion.com/v1/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}