Paragon
Search
⌃K
Links

Notion

Connect to your users' Notion accounts

Setup Guide

You can find your Notion app credentials on your Notion Integrations Page.
You'll need the following information to set up your Notion App with Paragon Connect:
  • Client ID
  • Client Secret
This is an API-only integration - workflow actions for this integration are still in development. You can still connect user accounts, build workflows, and access the API for this integration.

Add your Notion app to Paragon

Under Integrations > Connected Integrations > {YOUR_APP} > Settings, fill out your credentials from your developer app in their respective sections:
  • Client ID: Found under Client ID on your Notion App page.
  • Client Secret: Found under Client Secret on your Notion App page.
Leaving the Client ID and Client Secret blank will use Paragon development keys.

Connecting to Notion

Once your users have connected their Notion account, you can use the Paragon SDK to access the Notion API on behalf of connected users.
See the Notion REST API documentation for their full API reference.
Any Notion API endpoints can be accessed with the Paragon SDK as shown in this example.
// You can find your project ID in the Overview tab of any Integration
​
// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);
// Create a page in Notion
paragon.request("notion", "/v1/pages", {
method: "POST",
body: {
"parent": { "page_id": "d9824bdc84454327be8b5b47500af6ce" },
"icon": {
"emoji": "🥬"
},
"properties": {
"Title": {
"text": "My page"
},
},
"children": []
}
});
​
// Retrieve a Notion page
paragon.request("notion", "/v1/pages/<page ID>", {
method: "GET"
});

Building Notion workflows

Once your Notion account is connected, you use the Notion Request step to access any of Notion's API endpoints without the authentication piece.
When creating or updating records in Notion, you can reference data from previous steps by typing {{ to invoke the variable menu.
Last modified 12d ago