notion.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
Blocks
appendBlock
blocks.appendBlock
Append new blocks to a block or page
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
block_id | string | Yes | — |
children | object[] | Yes | — |
children full type
children full type
| Name | Type | Required | Description |
|---|---|---|---|
object | list | Yes | — |
results | object[] | Yes | — |
next_cursor | string | No | — |
has_more | boolean | Yes | — |
type | string | No | — |
page_or_database | object | No | — |
request_id | string | No | — |
results full type
results full type
page_or_database full type
page_or_database full type
getManyChildBlocks
blocks.getManyChildBlocks
Retrieve child blocks of a block or page
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
block_id | string | Yes | — |
start_cursor | string | No | — |
page_size | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | list | Yes | — |
results | object[] | Yes | — |
next_cursor | string | No | — |
has_more | boolean | Yes | — |
type | string | No | — |
page_or_database | object | No | — |
request_id | string | No | — |
results full type
results full type
page_or_database full type
page_or_database full type
Database Pages
createDatabasePage
databasePages.createDatabasePage
Create a new page in a database
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
database_id | string | Yes | — |
properties | object | Yes | — |
properties full type
properties full type
| Name | Type | Required | Description |
|---|---|---|---|
object | page | Yes | — |
id | string | Yes | — |
created_time | string | Yes | — |
created_by | object | No | — |
last_edited_time | string | Yes | — |
last_edited_by | object | No | — |
cover | object | No | — |
icon | object | No | — |
parent | object | Yes | — |
archived | boolean | Yes | — |
in_trash | boolean | No | — |
is_locked | boolean | No | — |
properties | object | Yes | — |
url | string | Yes | — |
public_url | string | No | — |
created_by full type
created_by full type
last_edited_by full type
last_edited_by full type
cover full type
cover full type
icon full type
icon full type
parent full type
parent full type
properties full type
properties full type
getDatabasePage
databasePages.getDatabasePage
Get a page from a database
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
page_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | page | Yes | — |
id | string | Yes | — |
created_time | string | Yes | — |
created_by | object | No | — |
last_edited_time | string | Yes | — |
last_edited_by | object | No | — |
cover | object | No | — |
icon | object | No | — |
parent | object | Yes | — |
archived | boolean | Yes | — |
in_trash | boolean | No | — |
is_locked | boolean | No | — |
properties | object | Yes | — |
url | string | Yes | — |
public_url | string | No | — |
created_by full type
created_by full type
last_edited_by full type
last_edited_by full type
cover full type
cover full type
icon full type
icon full type
parent full type
parent full type
properties full type
properties full type
getManyDatabasePages
databasePages.getManyDatabasePages
List and filter pages in a database
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
database_id | string | Yes | — |
filter | any | No | — |
sorts | any[] | No | — |
start_cursor | string | No | — |
page_size | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | list | Yes | — |
results | object[] | Yes | — |
next_cursor | string | No | — |
has_more | boolean | Yes | — |
type | string | No | — |
page_or_database | object | No | — |
request_id | string | No | — |
results full type
results full type
page_or_database full type
page_or_database full type
updateDatabasePage
databasePages.updateDatabasePage
Update properties of a database page
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
page_id | string | Yes | — |
properties | object | No | — |
archived | boolean | No | — |
properties full type
properties full type
| Name | Type | Required | Description |
|---|---|---|---|
object | page | Yes | — |
id | string | Yes | — |
created_time | string | Yes | — |
created_by | object | No | — |
last_edited_time | string | Yes | — |
last_edited_by | object | No | — |
cover | object | No | — |
icon | object | No | — |
parent | object | Yes | — |
archived | boolean | Yes | — |
in_trash | boolean | No | — |
is_locked | boolean | No | — |
properties | object | Yes | — |
url | string | Yes | — |
public_url | string | No | — |
created_by full type
created_by full type
last_edited_by full type
last_edited_by full type
cover full type
cover full type
icon full type
icon full type
parent full type
parent full type
properties full type
properties full type
Databases
getDatabase
databases.getDatabase
Get info about a database
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
database_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | database | Yes | — |
id | string | Yes | — |
cover | object | No | — |
icon | object | No | — |
created_time | string | Yes | — |
created_by | object | No | — |
last_edited_time | string | Yes | — |
last_edited_by | object | No | — |
title | object[] | Yes | — |
description | object[] | Yes | — |
is_inline | boolean | Yes | — |
properties | object | Yes | — |
parent | object | Yes | — |
url | string | Yes | — |
public_url | string | No | — |
archived | boolean | Yes | — |
in_trash | boolean | No | — |
cover full type
cover full type
icon full type
icon full type
created_by full type
created_by full type
last_edited_by full type
last_edited_by full type
title full type
title full type
description full type
description full type
properties full type
properties full type
parent full type
parent full type
getManyDatabases
databases.getManyDatabases
List databases accessible to the integration
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
start_cursor | string | No | — |
page_size | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | list | Yes | — |
results | object[] | Yes | — |
next_cursor | string | No | — |
has_more | boolean | Yes | — |
type | string | No | — |
page_or_database | object | No | — |
request_id | string | No | — |
results full type
results full type
page_or_database full type
page_or_database full type
searchDatabase
databases.searchDatabase
Search and filter databases
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
query | string | No | — |
sort | any | No | — |
filter | any | No | — |
start_cursor | string | No | — |
page_size | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | list | Yes | — |
results | object[] | Yes | — |
next_cursor | string | No | — |
has_more | boolean | Yes | — |
type | string | No | — |
page_or_database | object | No | — |
request_id | string | No | — |
results full type
results full type
page_or_database full type
page_or_database full type
Pages
archivePage
pages.archivePage
Archive (trash) a page [DESTRUCTIVE]
Risk: destructive
| Name | Type | Required | Description |
|---|---|---|---|
page_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | page | Yes | — |
id | string | Yes | — |
created_time | string | Yes | — |
created_by | object | No | — |
last_edited_time | string | Yes | — |
last_edited_by | object | No | — |
cover | object | No | — |
icon | object | No | — |
parent | object | Yes | — |
archived | boolean | Yes | — |
in_trash | boolean | No | — |
is_locked | boolean | No | — |
properties | object | Yes | — |
url | string | Yes | — |
public_url | string | No | — |
created_by full type
created_by full type
last_edited_by full type
last_edited_by full type
cover full type
cover full type
icon full type
icon full type
parent full type
parent full type
properties full type
properties full type
createPage
pages.createPage
Create a new page
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
parent | object | Yes | — |
properties | object | No | — |
children | object[] | No | — |
parent full type
parent full type
properties full type
properties full type
children full type
children full type
| Name | Type | Required | Description |
|---|---|---|---|
object | page | Yes | — |
id | string | Yes | — |
created_time | string | Yes | — |
created_by | object | No | — |
last_edited_time | string | Yes | — |
last_edited_by | object | No | — |
cover | object | No | — |
icon | object | No | — |
parent | object | Yes | — |
archived | boolean | Yes | — |
in_trash | boolean | No | — |
is_locked | boolean | No | — |
properties | object | Yes | — |
url | string | Yes | — |
public_url | string | No | — |
created_by full type
created_by full type
last_edited_by full type
last_edited_by full type
cover full type
cover full type
icon full type
icon full type
parent full type
parent full type
properties full type
properties full type
searchPage
pages.searchPage
Search pages and databases by title
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
query | string | No | — |
sort | any | No | — |
filter | any | No | — |
start_cursor | string | No | — |
page_size | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | list | Yes | — |
results | object[] | Yes | — |
next_cursor | string | No | — |
has_more | boolean | Yes | — |
type | string | No | — |
page_or_database | object | No | — |
request_id | string | No | — |
results full type
results full type
page_or_database full type
page_or_database full type
Users
getManyUsers
users.getManyUsers
List all users in the workspace
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
start_cursor | string | No | — |
page_size | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | list | Yes | — |
results | object[] | Yes | — |
next_cursor | string | No | — |
has_more | boolean | Yes | — |
type | string | No | — |
page_or_database | object | No | — |
request_id | string | No | — |
results full type
results full type
page_or_database full type
page_or_database full type
getUser
users.getUser
Get info about a user
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
object | user | Yes | — |
id | string | Yes | — |
type | person | bot | Yes | — |
name | string | No | — |
avatar_url | string | No | — |