Notion (API Token)
Connect to Notion to manage your workspace, databases, pages, and blocks using API token authentication.
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:
| Action | Purpose | Parameters |
|---|---|---|
| get_v1_users_by_user_id | Retrieve a user | user_id (string) |
| get_v1_users | List all users | start_cursor (string) page_size (integer) |
| get_v1_users_me | Retrieve your token's bot user | No parameters |
| post_v1_databases_by_database_id_query | Query a database | database_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_search | Search by title | data: { . query (string) . sort (object) . filter (object) . start_cursor (string) . page_size (integer) } (object) required |
| get_v1_blocks_by_block_id_children | Retrieve block children | block_id (string) start_cursor (string) page_size (integer) |
| patch_v1_blocks_by_block_id_children | Append block children | block_id (string) data: { . children (array) . after (string) } (object) required |
| get_v1_blocks_by_block_id | Retrieve a block | block_id (string) |
| patch_v1_blocks_by_block_id | Update a block | block_id (string) data: { . type (object) . archived (boolean) } (object) required |
| delete_v1_blocks_by_block_id | Delete a block | block_id (string) |
| get_v1_pages_by_page_id | Retrieve a page | page_id (string) filter_properties (string) |
| patch_v1_pages_by_page_id | Update page properties | page_id (string) data: { . properties (object) . in_trash (boolean) . archived (boolean) . icon (object) . cover (object) } (object) required |
| post_v1_pages | Create a page | data: { . parent (object) . properties (object) . children (array) . icon (string) . cover (string) } (object) required |
| post_v1_databases | Create a database | data: { . parent (object) . properties (object) . title (array) } (object) required |
| patch_v1_databases_by_database_id | Update a database | database_id (string) data: { . title (array) . description (array) . properties (object) } (object) required |
| get_v1_databases_by_database_id | Retrieve a database | database_id (string) |
| get_v1_pages_by_page_id_properties_by_property_id | Retrieve a page property item | page_id (string) property_id (string) page_size (integer) start_cursor (string) |
| get_v1_comments | Retrieves 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_comments | Creates a comment in a page or existing discussion thread. | data: { . parent (object) . rich_text (array) } (object) required |