Skip to main content

Notion (API Token)

Connect to Notion to manage your workspace, databases, pages, and blocks using API token authentication.

Notion (API Token) Logo

Authentication

This connector uses Token-based authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use

Using the Smart Chat

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions

This connector provides 19 actions:

ActionPurposeParameters
get_v1_users_by_user_idRetrieve a useruser_id (string)
get_v1_usersList all usersstart_cursor (string)
page_size (integer)
get_v1_users_meRetrieve your token's bot userNo parameters
post_v1_databases_by_database_id_queryQuery a databasedatabase_id (string)
filter_properties (array)
data: {
. filter (object)
. sorts (array)
. start_cursor (string)
. page_size (integer)
. archived (boolean)
. in_trash (boolean)
} (object) required
post_v1_searchSearch by titledata: {
. query (string)
. sort (object)
. filter (object)
. start_cursor (string)
. page_size (integer)
} (object) required
get_v1_blocks_by_block_id_childrenRetrieve block childrenblock_id (string)
start_cursor (string)
page_size (integer)
patch_v1_blocks_by_block_id_childrenAppend block childrenblock_id (string)
data: {
. children (array)
. after (string)
} (object) required
get_v1_blocks_by_block_idRetrieve a blockblock_id (string)
patch_v1_blocks_by_block_idUpdate a blockblock_id (string)
data: {
. type (object)
. archived (boolean)
} (object) required
delete_v1_blocks_by_block_idDelete a blockblock_id (string)
get_v1_pages_by_page_idRetrieve a pagepage_id (string)
filter_properties (string)
patch_v1_pages_by_page_idUpdate page propertiespage_id (string)
data: {
. properties (object)
. in_trash (boolean)
. archived (boolean)
. icon (object)
. cover (object)
} (object) required
post_v1_pagesCreate a pagedata: {
. parent (object)
. properties (object)
. children (array)
. icon (string)
. cover (string)
} (object) required
post_v1_databasesCreate a databasedata: {
. parent (object)
. properties (object)
. title (array)
} (object) required
patch_v1_databases_by_database_idUpdate a databasedatabase_id (string)
data: {
. title (array)
. description (array)
. properties (object)
} (object) required
get_v1_databases_by_database_idRetrieve a databasedatabase_id (string)
get_v1_pages_by_page_id_properties_by_property_idRetrieve a page property itempage_id (string)
property_id (string)
page_size (integer)
start_cursor (string)
get_v1_commentsRetrieves a list of un-resolved Comment objectsref:comment-object from a page or block.block_id (string) required
start_cursor (string)
page_size (integer)
post_v1_commentsCreates a comment in a page or existing discussion thread.data: {
. parent (object)
. rich_text (array)
} (object) required