Skip to main content

Documentation Index

Fetch the complete documentation index at: https://explore.airia.com/llms.txt

Use this file to discover all available pages before exploring further.

Notion actions let an agent work with your workspace directly in a flow. An agent can create and read pages, read databases, and search the workspace, then pass the results to later steps.

Supported actions

GroupActions
PageCreate, Get
DatabaseGet
SearchSearch

Prerequisites

Connect Notion through OAuth, or store a Notion integration secret. Save either as a Notion credential in Credential Management. Select that credential on every Notion action. These actions also support end user authentication, so a step can act on each user’s own connected workspace.

How to use these actions

  • Map text inputs from earlier steps. Inputs such as Query and the JSON fields accept a value mapped from a previous step.
  • Page Size takes a fixed value. Enter Page Size as a fixed value.
  • Create a page under a database or another page. Supply either a Parent Database ID to create the page inside a database, or a Parent Page ID to create it under another page.
  • Properties and children are JSON. Page properties and block children are provided as JSON.
  • List and search results page with a cursor. Pass the Start Cursor to page through more results.

Actions

Page

Notion Page Create

Creates a new page.
You must supply either a Parent Database ID or a Parent Page ID.
InputRequiredDescription
Parent Database IDConditionalThe database to create the page inside. Provide this or Parent Page ID.
Parent Page IDConditionalThe page to create the new page under. Provide this or Parent Database ID.
Properties JSONYesThe page properties as JSON.
Children JSONNoThe block children as JSON.
IconNoAn emoji or an external URL.
Cover URLNoA cover image URL.

Notion Page Get

Retrieves a page by ID.
InputRequiredDescription
Page IDYesThe unique identifier of the page to retrieve.

Database

Notion Database Get

Retrieves a database by ID.
InputRequiredDescription
Database IDYesThe unique identifier of the database to retrieve.
Searches your workspace for pages and databases.
InputRequiredDescription
QueryNoThe search text to match.
Filter Object TypeNoLimit results to one type, either page or database.
Sort DirectionNoThe sort direction, either ascending or descending.
Sort TimestampNoThe timestamp to sort by, last_edited_time.
Page SizeNoMaximum number of results to return, from 1 to 100.
Start CursorNoPagination cursor. The cursor to start from.

Example

An agent that logs a meeting summary to a Notion database:
1

Find the database

A Notion Search action with Filter Object Type set to database lets a model step confirm the target database ID.
2

Create the page

A Notion Page Create action sets Parent Database ID to that database and maps Properties JSON to the meeting title, date, and owner, with the summary supplied through Children JSON.
3

Confirm

A model step summarizes the created page, including its returned identifier, for the activity log.

Troubleshooting

Confirm the stored secret or OAuth connection is valid and has not been revoked. Reconnect Notion or update the credential.
The Page ID or Database ID does not exist, or the integration has not been shared with that page or database. In Notion, share the page or database with your integration, then retry.
A page must have a parent. Supply either a Parent Database ID or a Parent Page ID, but not both.
Properties JSON and Children JSON must be valid JSON that matches the Notion structure for the parent. Confirm property names match the database schema.
For issues common to every vendor, see the Actions overview.