Notion
notion · Nodes · Providers
Runs Notion provider operations.
Notion#
Run Notion REST API operations from a workflow.
Auth and Access#
- Select a
notionconnection. - API key auth uses a Notion internal integration token.
- OAuth auth uses the stored Notion access token when available.
- The connection can only access pages, blocks, and data sources shared with that integration/user.
- IDs must be exact Notion IDs. URLs and names are not resolved.
Inputs#
input- Triggers the node. Interpolatable fields can read from{{ input.* }}.
Configuration#
connection- required Notion connection ID.operation- tagged operation object withop.retry- whether each Notion request is sent again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see Retries.search,content_search,retrieve_page,delete_block,list_block_childrenandquery_data_sourceare sent again freely;create_page,update_page_properties,delete_page,append_block_childrenandupdate_blockare writes, sent again only when Notion refused them before acting: the connection never opened, or Notion answered 425 or 429.
Operations#
search#
Searches shared pages and data sources by title/name using Notion REST /v1/search.
query- optional search text. Blank is omitted.object_filter-all,page, ordata_source.allomits the Notion filter.limit- max total results, default50, max1000.start_cursor- optional initial cursor. Blank is omitted.
content_search#
Searches text inside shared pages by enumerating pages and scanning block text. Use this for content questions such as “What is our leave policy?”.
query- required text to find in page content.limit- max matching pages to return, default50, max1000.max_pages- max shared pages to inspect, default25, max1000.max_blocks_per_page- max blocks to inspect per page, default200, max1000.
retrieve_page#
Retrieves one page.
page_id- required exact page ID.
create_page#
Creates a page.
parent_kind-page,data_source, orworkspace.parent_id- required forpageanddata_source; omitted forworkspace.title- used only whenpropertiesis empty.markdown- optional top-level Markdown content. Blank is omitted.properties- optional Notion page properties object. If non-empty, sent as-is.
Properties example:
{
"Name": { "title": [{ "text": { "content": "Incident follow-up" } }] },
"Status": { "status": { "name": "Open" } },
"Priority": { "select": { "name": "High" } }
}
update_page_properties#
Updates page properties.
page_id- required exact page ID.properties- required non-empty Notion properties object.
delete_page#
Moves a page to trash.
page_id- required exact page ID.- Sends
in_trash: trueto Notion.
append_block_children#
Appends child blocks.
block_id- required exact block ID.children- required non-empty Notion block children array.
Children example:
[
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{ "type": "text", "text": { "content": "Follow up required." } }]
}
}
]
update_block#
Updates a block.
block_id- required exact block ID.block- required non-empty Notion block update object.
Block update example:
{
"type": "paragraph",
"paragraph": {
"rich_text": [{ "type": "text", "text": { "content": "Updated text." } }]
}
}
delete_block#
Deletes a block.
block_id- required exact block ID.
list_block_children#
Lists child blocks.
block_id- required exact block ID.limit- max total results, default50, max1000.start_cursor- optional initial cursor. Blank is omitted.
query_data_source#
Queries a shared data source.
data_source_id- required exact data source ID.filter- optional Notion filter object.nullomits it.sorts- optional Notion sorts array.nullomits it.limit- max total results, default50, max1000.start_cursor- optional initial cursor. Blank is omitted.
Filter example:
{
"property": "Status",
"status": { "equals": "Open" }
}
Sorts example:
[
{ "property": "Priority", "direction": "ascending" },
{ "timestamp": "created_time", "direction": "descending" }
]
Pagination#
search,list_block_children, andquery_data_sourceauto-page untillimitresults are collected or Notion returnshas_more: false.- Requests use Notion page sizes up to
100. - Output preserves the final Notion list object and replaces
resultswith the merged results.
Outputs#
output- raw Notion JSON response.- List operations return a Notion list object with merged
results. - Non-list operations return the raw Notion page/block/mutation response.
Inputs
inputRequired
Outputs
output
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
connection | connection(notion) | Yes | |
operation | tagged_union | No | Operation to perform |
retry | tagged_union | No | Sends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once. |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |