Notion
Create pages and manage databases in Notion.
On this page
Connect
Auth type: OAuth (oauth2). The connection holds the provider's OAuth tokens. They are sealed on the server and only opened when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("notion", action, input) resolves with the provider's answer and rejects when Notion isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "notion"} says whether yours can call it.
// workflows/notify.ts: call Notion when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellNotion = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Notion isn't connected.
const output = await step.run("Notion", () =>
step.ctx.integrations.invoke("notion", "create_database_item", {
"database_id": "<database_id>",
"databaseFields": {}
}),
);
step.ctx.log("Notion answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "notion",
"piece_action": "create_database_item",
"input": {
"database_id": "<database_id>",
"databaseFields": {}
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/notion/create_database_item" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"database_id":"<database_id>","databaseFields":{}}}'Actions
create_database_item
Create Database Item. Add a new item to a Notion database with custom field values and optional content. Ideal for creating tasks, records, or entries in structured databases.
| Input | Type | Description |
|---|---|---|
database_idrequired | id (picked from your account) | Choose the Notion database you want to work with from your workspace |
databaseFieldsrequired | object (depends on other props) | Fields |
contentoptional | long text | The content you want to append to your item. |
createPage
Create Page. Create a new Notion page as a sub-page with custom title and content. Perfect for organizing documentation, notes, or creating structured page hierarchies.
Also accepted as create_page.
| Input | Type | Description |
|---|---|---|
pageIdrequired | id (picked from your account) | Choose the Notion page you want to work with. This list shows your 100 most recently edited pages for easy selection. |
titleoptional | text | The title of the page. |
contentoptional | long text | The content of the page. |
retrieve_database
Retrieve Database Structure. Get detailed information about a Notion database including all its properties, field types, and configuration. Perfect for building dynamic forms, validation rules, or understanding database schemas.
| Input | Type | Description |
|---|---|---|
database_idrequired | id (picked from your account) | Choose the Notion database you want to work with from your workspace |
update_database_item
Update Database Item. Update specific fields in a Notion database item. Perfect for maintaining data, tracking changes, or syncing information across systems.
| Input | Type | Description |
|---|---|---|
database_idrequired | id (picked from your account) | Choose the Notion database you want to work with from your workspace |
database_item_idrequired | id (picked from your account) | Select the item you want to update |
databaseFieldsrequired | object (depends on other props) | Fields |
add_comment
Add Comment. Add a comment to any Notion page to start discussions, provide feedback, or leave notes for team collaboration.
| Input | Type | Description |
|---|---|---|
page_idrequired | id (picked from your account) | Choose the Notion page you want to work with. This list shows your 100 most recently edited pages for easy selection. |
comment_textrequired | long text | Enter your comment text. Supports plain text and will be posted as a new comment thread on the selected page. |
append_to_page
Append to Page. Appends content to the end of a page.
| Input | Type | Description |
|---|---|---|
pageIdrequired | id (picked from your account) | Choose the Notion page you want to work with. This list shows your 100 most recently edited pages for easy selection. |
contentrequired | long text | The content you want to append. You can use markdown formatting. |
archive_database_item
Archive Database Item. Archive (soft-delete) a database item without permanently removing it. Archived items can be restored later if needed.
| Input | Type | Description |
|---|---|---|
database_idrequired | id (picked from your account) | Choose the Notion database you want to work with from your workspace |
database_item_idrequired | id (picked from your account) | Select the item you want to update |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
find_page
Find Page. Search for Notion pages by title with flexible matching options. Perfect for finding specific pages, building page references, or creating automated workflows based on page discovery.
| Input | Type | Description |
|---|---|---|
titlerequired | text | Enter the page title or part of the title you want to search for |
exact_matchoptional | boolean | Enable this to find pages with exactly the same title. Disable for partial matching (finds pages containing your search term). |
limitoptional | number | How many pages to return at most (between 1 and 100) |
get_page_comments
Get Page Comments. Retrieve all comments from a Notion page, organized by discussion threads. Perfect for tracking feedback, managing reviews, or monitoring page discussions.
| Input | Type | Description |
|---|---|---|
page_idrequired | id (picked from your account) | Choose the Notion page you want to work with. This list shows your 100 most recently edited pages for easy selection. |
getPageOrBlockChildren
Get block content. Retrieve the actual content of a page (represented by blocks).
| Input | Type | Description |
|---|---|---|
parentIdrequired | text | Page or parent block ID |
markdownrequired | boolean | Convert Notion JSON blocks to Markdown |
dynamicrequired | object (depends on other props) | Dynamic properties |
notion-find-database-item
Find Database Item. Searches for an item in database by field.
| Input | Type | Description |
|---|---|---|
database_idrequired | id (picked from your account) | Choose the Notion database you want to work with from your workspace |
filterDatabaseFieldsrequired | object (depends on other props) | Fields |
restore_database_item
Restore Database Item. Restore an archived database item back to active status. Perfect for recovering accidentally archived tasks, projects, or records.
| Input | Type | Description |
|---|---|---|
database_idrequired | id (picked from your account) | Choose the Notion database you want to work with from your workspace |
archived_item_idrequired | id (picked from your account) | Choose which archived item to restore from the selected database |
Details
- Id
notion- Category
- Productivity
- Tags
- wiki, docs, database, knowledge-base
- Package
@activepieces/piece-notion@0.6.1- Runs
- Through the integration runner