Notion v2

Provides integration with Notion, a connected workspace for documents, wikis, project tracking and structured data. Teams use it to write pages, organize content in databases and data sources, discuss work in comments and build views over their data.

The Notion Node reads and maintains pages, page Markdown, blocks, databases, data sources, views, comments, users, custom emojis and asynchronous tasks through Notion's public API. Use it to synchronize Notion content with other systems, for example to create pages from incoming records, query a data source for recently edited pages or append content to an existing page.

Revision History

0.0.0.2 - Initial release.
0.0.0.4 - Expands templates for page Markdown, data sources, views, comments and asynchronous tasks.
0.0.0.5 - Maintenance release.
0.0.0.8 - Adds the Get, List and Search Methods and Trash templates, and moves to Notion API version 2026-12-01.

Connection

The Notion Connection stores the OAuth settings of your Notion public connection and the tokens every request uses.

Property Type Description
ClientId String OAuth client identifier issued by Notion for your public connection.
ClientSecret Masked OAuth client secret issued by Notion for your public connection.
AccessToken Masked Populated when you connect your account. Sent with every Notion API request and renewed automatically when Notion rejects it.
RefreshToken Masked Populated when you connect your account. Notion issues a new refresh token on every renewal, and the Node saves it.

Setup Notes

  1. In Notion, create a public connection (Notion's current name for a public integration) and add the Flowgear OAuth callback URL, https://app.flowgear.net/r/auth, as its redirect URI.
  2. Enable the capabilities your Workflows need on the Notion connection. Content templates need read, update or insert content. Comment templates need read comments or insert comments, and user templates need user information. Notion turns the comment and user capabilities off by default.
  3. Create a Connection for Notion and enter ClientId and ClientSecret from the Notion connection.
  4. Click Connect your Account, sign in to Notion and grant access to the pages your Workflows need.
  5. Test and save the Connection. The test reads the Notion connection's bot user.

Notion has no OAuth scopes. The Connection can reach only the pages and databases that are shared with the Notion connection, within the capabilities enabled on it. To give a Workflow access to more content later, share that page or database with the connection in Notion.

Notion internal integration tokens and personal access tokens are not supported.

This Node runs on Cloud Runtimes.

Methods

Select a template for each Step. Templates set OperationId and the inputs for one Notion operation, and each template belongs to one Method. Get, List, Query and Search take route IDs and filters in Options. Create, Update and Delete take one item per record in Items, and each item carries its own route IDs. Every request uses Notion API version 2026-12-01.

Get

Gets one Notion record by ID.

Parameter Type Description
Connection Connection Notion Connection to use.
OperationId String Operation selected by the template.
Options Object The record's route ID, such as page_id, and any controls for the selected operation.
Return Type Description
Response Array One row containing the Notion record as Notion returns it, without a Flowgear object.

The Get templates are:

  • Users: Get Bot User returns the bot user of the Notion connection. Get User (user_id) needs the user information capability.
  • Pages: Get Page (page_id) returns a page with its properties. Set filter_properties to limit the properties returned. Get Page Markdown (page_id) returns the page content as Notion-flavoured Markdown and accepts include_transcript.
  • Blocks: Get Block (block_id).
  • Databases and data sources: Get Database (database_id) returns the database container and the data sources it holds. Get Data Source (data_source_id) returns the data source with its property schema.
  • Views and comments: Get View (view_id), and Get Comment (comment_id), which needs the read comments capability.
  • Asynchronous tasks: Get Async Task (task_id) returns the status of an asynchronous Notion task, such as a large Markdown update.

Templates leave the route ID empty. The Step fails with a message such as page_id was not provided. until you map one.

List

Lists a whole Notion collection.

Parameter Type Description
Connection Connection Notion Connection to use.
OperationId String Operation selected by the template.
Options Object Route IDs and optional filters for the selected operation.
Return Type Description
Response Array One row per Notion record, across every page of results, without a Flowgear object. An empty collection returns zero rows.

List filters are optional. Without them, the Node reads the whole collection. The List templates are:

  • List Users lists the workspace's users and bots. Guests are not listed.
  • List Page Property Items (page_id, property_id) lists the values of one page property. Title, rich text, people and relation properties return one row per value. Other property types return one row. You can map property_id exactly as Notion returns it, including URL-encoded IDs such as %3AUPp.
  • List Block Children (block_id) lists the child blocks of a page or block, one level deep.
  • List Data Source Pages (data_source_id) lists every page of a data source. It accepts sorts, archive_status, result_type and filter_properties. Use Query to filter the pages.
  • List Data Source Templates (data_source_id) lists a data source's page templates. name optionally narrows the list.
  • List Shared Content lists every page and data source shared with the Notion connection. It accepts sort and filter_properties. Use Search to narrow the list.
  • List Comments lists the open comments on a page or block. block_id is required, and the template needs the read comments capability.
  • List Custom Emojis lists the workspace's custom emojis. name optionally narrows the list.
  • List Views lists the views of a database or data source. Supply database_id or data_source_id.
  • List View Query Results (view_id, query_id) lists the pages of a cached view query made by Create View Query.

Query

Queries the pages of a Notion data source with a filter.

Parameter Type Description
Connection Connection Notion Connection to use.
OperationId String Operation selected by the template.
Options Object data_source_id, the required filter, and optional sorts, archive_status, result_type and filter_properties.
Return Type Description
Response Array One row per matching page, across every page of results, without a Flowgear object. No matches return zero rows.

The only Query template is Query Data Source. As selected, it returns pages edited on or after 2026-01-01: filter.timestamp is last_edited_time and filter.last_edited_time.on_or_after is 2026-01-01. Other filter fields show samples only.

A Query Step without a filter fails before calling Notion with Supply at least one of filter. Use the List method to read every record. Use List Data Source Pages to read every page.

Searches the titles of pages and data sources shared with the Notion connection.

Parameter Type Description
Connection Connection Notion Connection to use.
OperationId String Operation selected by the template.
Options Object query, filter or both, plus optional sort and filter_properties.
Return Type Description
Response Array One row per matching page or data source, across every page of results, without a Flowgear object. No matches return zero rows.

The Search template runs as selected with query set to Flowgear. Supply query, filter or both. When both are absent, the Step fails before calling Notion. Use List Shared Content to read everything shared with the connection.

Notion has no operation that lists databases. To find data sources, set filter.property to object and filter.value to data_source.

Create

Creates Notion records, or appends child blocks.

Parameter Type Description
Connection Connection Notion Connection to use.
OperationId String Operation selected by the template.
Items Array Records to create, one request per item. Each item carries its own route ID where the template has one.
Options Object Operation controls, such as filter_properties on Create Page. Route IDs belong on each item.
Return Type Description
Response Array One row per item: the Notion record plus a Flowgear object with IsSuccess, Message, and Request.

The Create templates are:

  • Create Page creates a page under a page, a data source or the workspace. The parent is a field of the item.
  • Create Database creates a database with its initial data source.
  • Create Data Source adds a data source to an existing database.
  • Create View creates a database view.
  • Create View Query (view_id) runs a view's filters and sorts and caches the result for 15 minutes. Read the result with List View Query Results.
  • Append Block Children (block_id) appends up to 100 child blocks to a page or block.
  • Create Comment adds a comment to a page, block or discussion. It needs the insert comments capability.

Update

Updates or moves Notion records.

Parameter Type Description
Connection Connection Notion Connection to use.
OperationId String Operation selected by the template.
Items Array Records to update, one request per item. Each item carries its own route ID, such as page_id, and the fields to change.
Options Object Operation controls, such as filter_properties on Update Page. Route IDs belong on each item.
Return Type Description
Response Array One row per item: the Notion record plus a Flowgear object with IsSuccess, Message, and Request.

The Update templates are:

  • Update Page (page_id) updates a page's properties, icon, cover or lock. Set in_trash to false to restore a page from Trash.
  • Update Page Markdown (page_id) inserts, replaces or updates a page's content as Markdown.
  • Move Page (page_id) moves a page under another page or data source.
  • Update Database (database_id) updates a database's title, description, icon, cover, parent or lock.
  • Update Data Source (data_source_id) updates a data source's title, icon or property schema.
  • Update View (view_id) updates a view's name, filter, sorts or configuration.
  • Update Block (block_id) updates a block's content by block type.
  • Update Comment (comment_id) updates a comment that the Notion connection created.

Item fields are sent as mapped, including explicit null values, because Notion clears a value when it receives null. For example, "icon": null removes a page icon, and {"date": null} or {"select": null} clears a property. A mapped field whose source value is missing also arrives as null and clears the value, so map only the fields you intend to change.

A literal null typed into a field on the Step is not sent, because the Workflow drops it before the Node runs. To clear a value, map the field from a source value that is empty or null.

Delete

Deletes Notion records or moves them to Trash.

Parameter Type Description
Connection Connection Notion Connection to use.
OperationId String Operation selected by the template.
Items Array One item per record, each carrying the record's route ID, such as page_id or block_id.
Options Object Operation controls for the selected operation.
Return Type Description
Response Array One row per item: the Notion response plus a Flowgear object with IsSuccess, Message, and Request.

Notion cannot permanently delete pages, databases, data sources or blocks through its API, so these templates move them to Trash:

  • Delete Page (page_id), Delete Database (database_id) and Delete Data Source (data_source_id) set in_trash to true. Other item fields are ignored. To restore a record, use Update Page, Update Database or Update Data Source with in_trash set to false.
  • Delete Block (block_id) moves a block to Trash.

These templates delete permanently:

  • Delete Comment (comment_id) deletes a comment that the Notion connection created.
  • Delete View (view_id) deletes a database view.
  • Delete View Query (view_id, query_id) deletes a cached view query.

Flowgear.Message states the outcome, for example Page moved to Trash. or Comment deleted.

Usage Notes

  • Select a template instead of entering OperationId manually.
  • Get, List, Query and Search return each Notion record as one row in Notion's own shape. Notion's paging fields, such as next_cursor and has_more, are not returned.
  • Search, List Shared Content, Query Data Source and List Data Source Pages return only each page's title property. To return more, set filter_properties to a comma-separated list of property names or IDs, for example title, Status. Get Page returns every property.
  • Enter select, status and multi-select filter values as text. Use a comma-separated list, such as Done,In progress, to match several options. Status equals matches option names only; use group_equals to match a status group.
  • The Node returns every page of results. An error on the first page stops the Node.
  • Notion limits data source queries and searches to 10,000 results. When a read reaches that limit, the Node returns the rows already read and then fails the Step. Narrow the filter to read the rest.
  • Check Flowgear.IsSuccess for every Create, Update and Delete result. If the first item fails, the Node stops. If a later item fails, the Node returns a failed result for that item, with Notion's error details, and continues with the rest. Authentication failures, timeouts, lost connections and exhausted retries always stop the Node. See Handle Partial Batch Failures.
  • A write that fails with a server error, timeout or lost connection is not resent, because Notion may already have applied it. Check Notion before you send that item again to avoid duplicates.
  • The Node retries rate-limited requests (HTTP 429 and 529) up to two times after Notion's Retry-After delay, up to 60 seconds. Reads are also retried after temporary server errors. Each request times out after 30 seconds.
  • If Notion rejects the refresh token, the Step fails and asks you to reconnect the Notion Connection.

Upgrading from 0.0.0.5

  • Create, Update and Delete templates and Query Data Source keep their template identifiers, so those Steps keep their template. Refresh the template to pick up the new fields.
  • Reselect the Method and template on every other read Step. Move single-record reads from Query to Get, whole-collection reads to List, and workspace search to Search. Their old OperationId values, such as pages.get, are not recognised.
  • Get Page Property Item is now List Page Property Items. Get Block Children is now List Block Children. Get View Query Results is now List View Query Results.
  • Query and Search now need at least one filter. Use List Data Source Pages or List Shared Content for unfiltered reads.
  • Create View Query no longer accepts page_size. Data source queries no longer send in_trash; use archive_status instead. Update Page Markdown no longer shows replace_content_range, which API version 2026-12-01 rejects.
  • Map rows for API version 2026-12-01. A person's unset name is null, and writing more than one entry to a single-entry files or people property fails.
  • Connect Items on every Create, Update and Delete Step, with each record's route IDs on its item. A failure on the first item now stops the Node instead of returning a failed row.
  • Use the new Delete Page, Delete Database and Delete Data Source templates to move records to Trash. Delete Block's message now reads Block moved to Trash.
  • Saved Connections keep their values after the Property renames (Client ID to ClientId, Client Secret to ClientSecret, Access Token to AccessToken, Refresh Token to RefreshToken).

Known Issues

  • Search results are eventually consistent. Do not use search alone to verify a resource immediately after creation.
  • List Users does not include guests. Retrieve a known guest ID with Get User when permitted.
  • Cached view queries expire after 15 minutes and contain at most 10,000 rows.
  • File uploads, meeting notes, agents and Notion's OAuth operations are not available as templates.
  • Templates show fields up to four levels deep. Deeper fields still appear in rows and can still be sent in items.
  • Some fields have no child fields in the templates and pass through as JSON: the properties and quick_filters maps keyed by property name, additional_data, result, block, syncing, table row cells, rollup array, and Notion's empty marker objects written as {}, such as this_week, divider and column_list.

See also