Skip to content
For LLMsView as Markdown·

Notion

Query databases, create pages, and manage blocks with the Notion API.

DetailValue
CategoryProductivity
Base URLhttps://api.notion.com
AuthenticationBearer Token
Endpoints6
Connector keynotion

Using Notion in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Notion from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /databases/{database_id}/queryQuery a database
POST /pagesCreate a page
GET /pages/{page_id}Retrieve a page
PATCH /pages/{page_id}Update page properties
GET /blocks/{block_id}/childrenGet block children
POST /searchSearch pages and databases

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /databases/{database_id}/query

Query a database

DetailValue
Operation IDdata.queryDatabase
MethodPOST
Path/databases/{database_id}/query

Parameters

NameLocationTypeRequired
database_idpathstringYes

Request Body

FieldType
filterobject
sortsarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Notion connection from the Connection dropdown.
  3. In the Operation dropdown, select data.queryDatabase.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Notion API reference.

POST /pages

Create a page

DetailValue
Operation IDdata.createPage
MethodPOST
Path/pages

Parameters

No parameters.

Request Body

FieldType
parentobject
propertiesobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Notion connection from the Connection dropdown.
  3. In the Operation dropdown, select data.createPage.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Notion API reference.

GET /pages/{page_id}

Retrieve a page

DetailValue
Operation IDdata.getPage
MethodGET
Path/pages/{page_id}

Parameters

NameLocationTypeRequired
page_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Notion connection from the Connection dropdown.
  3. In the Operation dropdown, select data.getPage.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Notion API reference.

PATCH /pages/{page_id}

Update page properties

DetailValue
Operation IDdata.updatePage
MethodPATCH
Path/pages/{page_id}

Parameters

NameLocationTypeRequired
page_idpathstringYes

Request Body

FieldType
propertiesobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Notion connection from the Connection dropdown.
  3. In the Operation dropdown, select data.updatePage.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Notion API reference.

GET /blocks/{block_id}/children

Get block children

DetailValue
Operation IDdata.getBlockChildren
MethodGET
Path/blocks/{block_id}/children

Parameters

NameLocationTypeRequired
block_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Notion connection from the Connection dropdown.
  3. In the Operation dropdown, select data.getBlockChildren.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Notion API reference.

POST /search

Search pages and databases

DetailValue
Operation IDdata.search
MethodPOST
Path/search

Parameters

No parameters.

Request Body

FieldType
querystring
filterobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Notion connection from the Connection dropdown.
  3. In the Operation dropdown, select data.search.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Notion API reference.