What can you do with it?
The Notion API allows you to manage your entire Notion workspace programmatically. You can create and update pages, manage databases with properties and entries, add and modify content blocks, and search across your workspace to find specific information.How to use it?
Basic Command Structure
Parameters
Required:action
- The action to perform (create, update, retrieve, query, etc.)page_id
ordatabase_id
- The target page or database IDcontent
- Content data for creation/update operations
properties
- Page or database propertiesfilters
- Query filters for database searchessorts
- Sort criteria for database queriesblock_type
- Type of block to create (paragraph, heading, to_do, etc.)
Tools
Create Page
Create a new page in a parent page or database. Parameters:parent_id
(required) - Parent page or database IDtitle
(required) - Page titleproperties
(optional) - Page propertiescontent
(optional) - Initial content blocks
Update Page
Update the properties of an existing page. Parameters:page_id
(required) - Page ID to updateproperties
(required) - Properties to updatetitle
(optional) - New page title
Retrieve Page
Get information about a specific page. Parameters:page_id
(required) - Page ID to retrieve
Get Page Content
Retrieve all blocks contained in a page. Parameters:page_id
(required) - Page ID to get content from
Create Database
Create a new database as a child of a page. Parameters:parent_page_id
(required) - Parent page IDtitle
(required) - Database titleproperties
(required) - Database schema properties
Query Database
Query a database with optional filters, sorts, and pagination. Parameters:database_id
(required) - Database ID to queryfilter
(optional) - Filter criteriasorts
(optional) - Sort criteriapage_size
(optional) - Number of results per page
Add Content Blocks
Add new blocks as children to an existing page or block. Parameters:parent_id
(required) - Parent page or block IDblocks
(required) - Array of blocks to addblock_type
(optional) - Type of blocks (paragraph, heading, to_do, etc.)
Update Block
Update the content of a specific block. Parameters:block_id
(required) - Block ID to updatecontent
(required) - New block contentblock_type
(optional) - Block type if changing
Search Workspace
Search for pages or databases matching query text. Parameters:query
(required) - Search query textfilter
(optional) - Filter by object type (page/database)sort
(optional) - Sort criteria