- Documentation
- Integrations
- Apps
- Notion integration
Notion integration
Read, write, and react to Notion pages, databases, and comments on behalf of your clients, with instant webhook triggers.
What it does
The Notion integration lets you keep client wikis, CRMs, content calendars and project trackers in sync with the rest of your stack. Connect a client workspace once and you can create, update, move and trash pages and database rows, read and write page content as markdown, work with comments, databases, data sources, saved views, file uploads and AI meeting notes, and start workflows the moment something changes — a new row, a property edit, a new comment — through Notion's webhooks.
Connect a Notion account
Notion connections use OAuth through your own Notion public integration.
- In Notion's developer portal, create an integration, set it to Public, and add TaskJuice's OAuth redirect URL (shown on the Notion credentials page in TaskJuice).
- Under Capabilities, enable Read, Update and Insert content, plus Read comments and Insert comments if you use comment actions or triggers, and User information if you read users.
- In TaskJuice, open Apps → Notion and paste the integration's OAuth client ID and secret.
- In your workspace, open Connections, choose Notion and click Connect. Your client picks the pages and databases to share — the integration can only see what they share.
To revoke access, remove the integration from the Notion workspace's Settings → Connections.
Set up instant triggers (webhooks)
Notion delivers changes by webhook, but a webhook subscription can only be created by hand in Notion's integration settings — there is no API for it. You do this once per Notion integration; every instant Notion trigger in your workspace then shares it.
- Add any Notion instant trigger to a workflow. The panel shows your event delivery URL.
- In Notion's integration settings, open Webhooks → Create a subscription, paste the URL, choose API version 2025-09-03 or later, and tick the event types for the triggers you use (listed below). Older API versions send
database.*events with database IDs that the Database filter cannot match. - Notion sends a one-time verification code to the URL. It appears in the trigger panel within seconds — copy it and paste it into Notion's Verify dialog.
- Save the same code as the Notion webhook signing secret under Apps → Notion. Notion signs every event with it (HMAC-SHA256 of the body in the
X-Notion-Signatureheader), and TaskJuice rejects anything whose signature does not match.
If you recreate the subscription in Notion, clear the old code in the trigger panel first, then use Resend token in Notion so the new code can arrive.
You set this up once on your Notion integration, never per client. Each event names its Notion workspace (workspace_id) and starts only the workflows that use the connection made for that Notion workspace. An event for a Notion workspace no connection has recorded yet starts every workflow in your organization that uses the trigger. Reconnect the connection to record its Notion workspace.
Notion's events carry IDs, not content. Each trigger gives you entity.id (the page, comment or database that changed) and data.parent; add Retrieve Page or Get Page Content as Markdown to read the current values.
Most instant triggers take an optional Database (Data source for the data-source triggers, Page ID for comment triggers). Leave it empty to fire for everything the integration can see, or pick one to fire only for that database's rows.
Triggers
Instant (webhook)
Pages and database rows:
- New Page (
notion/page-created) — Fires within about a minute when a page is created — including a new row in a database. Notion event:page.created. - Page Properties Updated (
notion/page-properties-updated) — Fires when one or more properties of a page change — for example a database row's Status, Assignee or Due date. Notion event:page.properties_updated. - Page Content Updated (
notion/page-content-updated) — Fires when the body of a page changes — blocks added, edited or removed. Notion event:page.content_updated. - Page Moved to Trash (
notion/page-deleted) — Fires when a page — or a database row — is moved to Trash. Notion event:page.deleted. - Page Restored (
notion/page-restored) — Fires when a page is restored from Trash. Notion event:page.undeleted. - Page Moved (
notion/page-moved) — Fires when a page is moved to a new parent page or database. Notion event:page.moved. - Page Locked or Unlocked (
notion/page-lock-changed) — Fires when a page is locked against editing or unlocked;typesays which (page.lockedorpage.unlocked). Notion event:page.locked,page.unlocked.
Comments:
- New Comment (
notion/comment-created) — Fires when someone adds a comment or suggested edit to a page or block. Notion event:comment.created. - Comment Updated (
notion/comment-updated) — Fires when a comment is edited (or a file attached to it finishes uploading). Notion event:comment.updated. - Comment Deleted (
notion/comment-deleted) — Fires when a comment is deleted. Notion event:comment.deleted.
Databases:
- New Database (
notion/database-created) — Fires when a new database is created anywhere the integration can see. Notion event:database.created. - Database Moved to Trash (
notion/database-deleted) — Fires when a database is moved to Trash. Notion event:database.deleted. - Database Schema Changed (
notion/database-schema-updated) — Fires when a database's properties (columns) are added, renamed or removed. Notion event:data_source.schema_updated. - Database Rows Changed (
notion/database-rows-changed) — Fires when rows are added to or removed from a database — a batched "something in this table changed" signal, useful for re-syncing a whole table. Notion event:data_source.content_updated. - Database Moved (
notion/database-moved) — Fires when a database is moved to a new parent page. Notion event:database.moved. - Database Restored (
notion/database-restored) — Fires when a database is restored from Trash. Notion event:database.undeleted.
Data sources (the tables inside a database):
- New Data Source (
notion/data-source-created) — Fires when a data source is added to an existing database. A brand-new database fires New Database instead. Notion event:data_source.created. - Data Source Moved (
notion/data-source-moved) — Fires when a data source is moved to another database. Notion event:data_source.moved. - Data Source Moved to Trash (
notion/data-source-deleted) — Fires when a data source is moved to Trash. Notion event:data_source.deleted. - Data Source Restored (
notion/data-source-restored) — Fires when a data source is restored from Trash. Notion event:data_source.undeleted.
Database views:
- New Database View (
notion/view-created) — Fires when a saved view (Table, Board, List, …) is added to a database, including the default view of every new database.data.view_typesays which layout. Notion event:view.created. - Database View Updated (
notion/view-updated) — Fires when a view's name, filter, sorts or layout changes;data.updated_fieldslists what changed. Notion event:view.updated. - Database View Deleted (
notion/view-deleted) — Fires when a saved view is deleted. Notion event:view.deleted.
File uploads (only uploads this connection started, for example with Create File Upload):
- File Upload Created (
notion/file-upload-created) — Fires when an upload is started. Notion event:file_upload.created. - File Upload Completed (
notion/file-upload-completed) — Fires when an upload finishes and the file can be attached. Notion event:file_upload.completed.
Polling
These work without a webhook subscription, on a poll interval (default five minutes).
- Database Item Changed (
notion/database-item-changed) — Polls a Notion database for pages whose last_edited_time has advanced past the previous cycle's watermark, ordered newest-edit first, and emits one activation per poll cycle wrapping every observed page in an items array. - Page Updated (
notion/page-updated) — Polls Notion's workspace search for every page shared with the connection, newest-edit first, and emits one activation per cycle wrapping the pages whose content or properties changed since the previous cycle. - New Comment (
notion/new-comment) — Polls the unresolved comments on one Notion page or block and emits one activation per cycle wrapping the comments that are new since the previous cycle.
Actions
- Query Database (
notion/query-database) — Queries a Notion database with optional filter and sort expressions and returns matching pages. - Create Page (
notion/create-page) — Creates a new page in a Notion database with the supplied properties and optional content blocks. - Update Page (
notion/update-page) — Updates a Notion page's properties (and optionally archives or restores it). - Retrieve Page (
notion/retrieve-page) — Retrieves a single Notion page by its ID. - Append Block Children (
notion/append-block-children) — Appends a list of block children to a parent block or page. - Search (
notion/search) — Searches all pages and databases shared with the integration. - Create Comment (
notion/create-comment) — Adds a comment to a Notion page, block, or existing discussion thread. Needs the integration's Insert comments capability. - List Comments (
notion/list-comments) — Lists the unresolved comments on a Notion page or block, oldest first. - List Users (
notion/list-users) — Lists every non-guest user in the connected Notion workspace — the read that resolves a people-property user ID to a name and email. - Retrieve User (
notion/retrieve-user) — Retrieves a single Notion user by ID. - Retrieve Block (
notion/retrieve-block) — Retrieves a single Notion block by ID. - Retrieve Block Children (
notion/retrieve-block-children) — Returns the first-level children of a Notion block or page — the read-side complement to Append Block Children. - Update Block (
notion/update-block) — Updates a Notion block's content in place. - Delete Block (
notion/delete-block) — Moves a Notion block (or a page addressed by its block ID) to Trash. - Trash Page (
notion/trash-page) — Moves a Notion page to Trash, or restores it. - Retrieve Database (
notion/retrieve-database) — Retrieves a Notion database's metadata. - Create Database (
notion/create-database) — Creates a Notion database under a page or the workspace root. - Update Database (
notion/update-database) — Updates a Notion database's title, description, icon, cover, inline flag, lock state, or trash state. - Query Data Source (
notion/query-data-source) — Queries one Notion data source with optional filter and sort expressions and returns matching pages. - Retrieve Data Source (
notion/retrieve-data-source) — Retrieves a Notion data source, including its full property schema — the read that tells a workflow which properties a row may set and what type each one is. - Create Data Source (
notion/create-data-source) — Adds a data source (a table) to an existing Notion database, with its own property schema. - Update Data Source (
notion/update-data-source) — Updates a Notion data source's title, icon, trash state, owning database, or property schema — the schema edit Zapier exposes as "Update Data Source Schema". - Create File Upload (
notion/create-file-upload) — Starts a Notion file upload and returns afile_uploadobject whoseidcan be attached to a page, block, comment, or file property. - Complete File Upload (
notion/complete-file-upload) — Finalises amode: "multi_part"Notion file upload once every part has been sent. - Get Page Content as Markdown (
notion/get-page-markdown) — Returns a page's full body as Notion-flavoured markdown in one call, instead of walking its block tree with Retrieve Block Children. - Add Markdown to Page (
notion/append-page-markdown) — Inserts markdown into a page's body — at the end (default), at the start, or right after a passage you name. - Replace Page Content with Markdown (
notion/replace-page-markdown) — Replaces a page's entire body with the markdown you supply — the page's properties and title are untouched. - Find and Replace Text in Page (
notion/find-replace-page-text) — Finds an exact passage in a page's body and replaces it — handy for filling template placeholders such as{{client_name}}after duplicating a page. - Get Page Property (
notion/retrieve-page-property) — Returns one property value of a page. - Move Page (
notion/move-page) — Moves a page under a different parent page, or into a data source (database) as a new row. - Get Comment (
notion/retrieve-comment) — Returns one comment by ID — for example the comment a New Comment trigger points at. - Update Comment (
notion/update-comment) — Rewrites the text of a comment the integration wrote. - Delete Comment (
notion/delete-comment) — Permanently deletes a comment the integration wrote. - Get Connected Workspace (
notion/get-bot-user) — Returns the connection's own bot user, including the workspace name and ID it is installed in. - List Data Source Templates (
notion/list-data-source-templates) — Lists the page templates saved on a data source, so a later Create Page can start from one. - List Database Views (
notion/list-views) — Lists the saved views (Table, Board, Calendar, …) of a database or data source. - Get Database View (
notion/retrieve-view) — Returns one saved view, including its filter, sorts and layout. - Query Database View (
notion/query-view) — Runs a saved view and returns the pages it shows, using the view's own filter and sort. - Find Meeting Notes (
notion/query-meeting-notes) — Finds up to 50 Notion AI meeting notes, newest first. - Upload File Contents (
notion/send-file-upload) — Sends a file's bytes to a pending upload created by Create File Upload (mode single_part, or one part of multi_part). - Get File Upload (
notion/retrieve-file-upload) — Returns a file upload's status — use it to wait for an external_url import to finish before attaching the file. - List File Uploads (
notion/list-file-uploads) — Lists the connection's recent file uploads, optionally filtered by status. - List Custom Emojis (
notion/list-custom-emojis) — Lists the workspace's custom emojis, optionally by name, so a page icon or comment can use one. - Get Async Task (
notion/retrieve-async-task) — Returns the status of a long-running Notion operation that answered with anasync_taskinstead of a result. - List Custom Agents (
notion/query-agents) — Lists the Notion Custom Agents shared with the connection (Business and Enterprise plans; the integration needs the "interact with agents" capability). - Send Message to Custom Agent (
notion/send-agent-message) — Starts a chat with a Notion Custom Agent — or continues one when Session ID is set — and returns the session. - Get Custom Agent Session (
notion/retrieve-agent-session) — Returns a Custom Agent session's status. - List Custom Agent Session Events (
notion/query-agent-session-events) — Returns a Custom Agent session's event history — the messages exchanged, including the agent's reply — oldest first.
Known limitations
- Webhook subscriptions are created by hand in Notion, once per integration. Events for pages the integration cannot see are never delivered.
- Comment actions and triggers need the integration's Read comments and Insert comments capabilities. Without them Notion answers
403 Insufficient permissions for this endpoint— turn them on under the integration's Capabilities in Notion; existing connections pick them up without reconnecting. - File upload events cover only uploads the connection itself started; files people add in Notion do not fire them. Notion rejects an unreachable import URL immediately, so there is no "upload failed" trigger, and an abandoned upload is not reported when it expires.
- Several Notion events are batched: page, database and row changes typically arrive within a minute, occasionally up to five. Comment and lock events arrive immediately. Notion does not guarantee ordering; use
timestampto order events. - Instant triggers deliver IDs only. Reading the changed content is a follow-up API call that counts against Notion's rate limit of roughly three requests per second per integration; TaskJuice treats a 429 as a retryable rate-limit error.
- Uploading a local file takes three steps — Create File Upload, Upload File Contents, then attach the upload's ID to a page, block or files property. For a file already at a public URL, Create File Upload in
external_urlmode is enough. - Custom Agent actions need a Business or Enterprise Notion plan and the integration's interact with agents capability. Agents reply asynchronously — poll Get Custom Agent Session until it is completed.
- Six original actions and the Database Item Changed trigger still send Notion API version
2022-06-28and address databases rather than data sources. They keep working for single-source databases; prefer the data-source actions for new workflows.