Get About Me
Gets
1. The user id associated with the Notion Integration.
2. The information about notion account like name of organisation.
To get more details about user, you can use the user id to g
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_GET_ABOUT_ME])
Add Page Content
Adds a single content block to a Notion page. If multiple blocks need to be added, use this function multiple times.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_ADD_PAGE_CONTENT])
Archive Notion Page
Archive or unarchive a page in Notion.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_ARCHIVE_NOTION_PAGE])
Create Database
Creates a database as a subpage in the specified parent page, with the specified
properties schema/columns.
Currently, the parent of a new database must be a Notion page.
You cannot update
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_CREATE_DATABASE])
Create Notion Page
Create a page in Notion under page with ID parent_id.
* If a specific parent_id is given, directly create the page under that parent.
* If no parent_id is given, search for all the pages in no
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_CREATE_NOTION_PAGE])
Delete Block
Sets a Block object, including page blocks, to archived: true using the ID specified.
This can be used to delete a block, page, or database.
Note: in the Notion UI application, this moves the
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_DELETE_BLOCK])
Fetch Database
Retrieves a database object — information that describes the structure and columns of a database —
for a provided database ID. The response adheres to any limits to an integration’s capabilities.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_FETCH_DATABASE])
Fetch Row
Each row in database is a page in notion so page_id & row_id is a UUID of that page.
ID of the Notion page to fetch.
To fetch content of a page, "fetch block children" action can be used.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_FETCH_ROW])
Search Notion Page
Search a page in Notion. Keep the value of parameter query "" to get list of all pages and their IDs.
This api can be used to search for all available pages currently to get their page Ids.
It
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_SEARCH_NOTION_PAGE])
Update Schema Database
Update a database schema in Notion. Using this you can change the columns/properties of a database.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_UPDATE_SCHEMA_DATABASE])
Fetch Notion Block
Retrieves a Block object using the ID specified.
If the block returned contains the key has_children: true, use the Retrieve block children endpoint to get the list of children.
To retrieve pa
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_FETCH_NOTION_BLOCK])
Fetch Notion Child Block
Returns a paginated array of child block objects contained in the block using the ID specified.
Page content is represented by block childrens. Use this function to get complete content of page.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_FETCH_NOTION_CHILD_BLOCK])
Get About User
Get information about the user account using the user ID
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_GET_ABOUT_USER])
List Users
List all users
Returns a paginated list of Users for the workspace.
The response may contain fewer than page_size of results.
Guests are not included in the response.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_LIST_USERS])
Insert Row Database
Each row in the database is a new page in notion.So inserting a row in the database is same as creating a page in notion.
It also contains Extra properties field which is a list of key,values for
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_INSERT_ROW_DATABASE])
Update Row Database
Each row in the database is a new page in notion.So updating a row in the database is same as updating a property of a page in notion.
This action updates a specific value in a row in notion datab
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_UPDATE_ROW_DATABASE])
Query Database
Get list of rows from a Notion database filtered and sorted.
Each row in notion database is represented as a page.
Each column in the database is represented as a property.
To use sorting,
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.NOTION_QUERY_DATABASE])