notion.pages.create_page ​
Create a Notion page in a database or as a child page
Create a Notion page as a child of a database or an existing page.
For database pages, properties must match the database schema. For plain child pages, only the title is required and content can be provided as simple paragraph blocks.
Inputs:
- parent_id: ID of the parent database or page (required).
- parent_type: database | page (optional, default: database).
- title: Page title (required).
- properties: Database property values as a dict (optional, for database pages).
- content: List of Notion block objects to add as page content (optional).
Outputs (terminal state_data):
- page_id: str — Notion page ID
- page_url: str — public page URL
Plugin required: context.get_plugin("notion") must expose .api_key.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-notion |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
parent_id | string | Yes | — | ID of the parent database or page |
parent_type | string | No | — | database |
title | string | Yes | — | Page title |
properties | json | No | — | Database property values |
content | json | No | — | List of Notion block objects |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
page_id | string | No | — | — |
page_url | string | No | — | — |
content | json | No | — | — |
parent_id | string | No | — | — |
parent_type | string | No | — | — |
properties | json | No | — | — |
title | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "notion.pages.create_page",
"initial_data": {
"parent_id": "value",
"title": "value"
}
}