Skip to main content

Notion Operations Reference

Orkes Conductor integrates with Notion to let you create and manage pages, databases, and blocks directly from your workflows. You can use the following operations to create, retrieve, update, and delete content in Notion, without leaving your workflow.

This page covers the parameters and expected output for each operation available in the Notion integration.

Create Page

Create a new page in Notion under a specified parent page or database.

ParameterDescriptionTypeRequired/Optional
ParentThe parent object for the new page, provided as a JSON string. Use page_id when the parent is a page, and database_id when the parent is a database.
For example:
  • {"type":"page_id","page_id":"<page-id>"}
  • {"type":"database_id","database_id":"<database-id>"}
To get the ID, open the page or database shared with your integration in Notion. The ID is the string of characters at the end of the URL:
  • https://www.notion.so/<parent-page-or-database-id>
  • or (newer Notion URLs): https://app.notion.com/p/<page-or-database-id>
string (JSON)Required.
PropertiesThe page properties as a JSON string. For example, {"title":[{"text":{"content":"My Page"}}]}.string (JSON)Required.
ChildrenThe page content as a JSON array of Notion block objects. Each block must follow the Notion block structure. For example, to add a paragraph: [{"object":"block","type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"Hello world"}}]}}].string (JSON array)Optional.

Retrieve Page

Retrieve the details and properties of a page by its ID.

ParameterDescriptionTypeRequired/Optional
Page IdThe ID of the page to retrieve. The page ID can be provided with or without dashes.
To get the page ID, open the page shared with your integration in Notion. The page ID is the string of characters at the end of the URL:
  • https://www.notion.so/<page-title>-<page-id>
  • or (newer Notion URLs): https://app.notion.com/p/<page-id>
stringRequired.

Update Page

Update the properties or archive status of an existing page.

ParameterDescriptionTypeRequired/Optional
Page IdThe ID of the page to update. The page ID can be provided with or without dashes.
To get the page ID, open the page shared with your integration in Notion. The page ID is the string of characters at the end of the URL:
  • https://www.notion.so/<page-title>-<page-id>
  • or (newer Notion URLs): https://app.notion.com/p/<page-id>
stringRequired.
PropertiesThe page properties to update as a JSON string. Property names must match the exact names defined in your database. For example, {"title":[{"text":{"content":"Updated Title"}}]}.string (JSON)Required.
ArchivedWhether to archive the page. Set to true to archive the page, or false to restore it.booleanOptional.

Retrieve Page Property

Retrieve the value of a specific property from a page.

ParameterDescriptionTypeRequired/Optional
Page IdThe ID of the page to retrieve the properties from. The page ID can be provided with or without dashes.
To get the page ID, open the page shared with your integration in Notion. The page ID is the string of characters at the end of the URL:
  • https://www.notion.so/<page-title>-<page-id>
  • or (newer Notion URLs): https://app.notion.com/p/<page-id>
stringRequired.
Property IdThe ID of the property to retrieve. To get the property ID, use the Retrieve Page operation and copy the required id value from the property in the response.stringRequired.
Start CursorThe start cursor for pagination. To paginate through results, pass the nextCursor value from the previous response into this field.stringOptional.
Page SizeThe maximum number of property item objects to return. Maximum value is 100.integerOptional.

Create Database

Create a new database as a subpage under a specified parent page.

ParameterDescriptionTypeRequired/Optional
ParentThe parent page under which the new database will be created, provided as a JSON string. For example, {"type":"page_id","page_id":"<page-id>"}.
To get the page ID, open the page shared with your integration in Notion. The page ID is the string of characters at the end of the URL:
  • https://www.notion.so/<page-title>-<page-id>
  • or (newer Notion URLs): https://app.notion.com/p/<page-id>
Note: The parent must be a Notion page. A database cannot be created directly inside another database.
string (JSON)Required.
TitleThe database title as a JSON array string. For example, [{"type":"text","text":{"content":"My Database"}}].string (JSON array)Required.
PropertiesThe database properties schema as a JSON string. For example, {"Name":{"title":{}},"Status":{"select":{}}}.string (JSON)Required.

Retrieve Database

Retrieve the details and schema of a database by its ID.

ParameterDescriptionTypeRequired/Optional
Database IdThe ID of the database to retrieve. The database ID can be provided with or without dashes.
To get the database ID, open the database in Notion. The database ID is the string of characters at the end of the URL:
  • https://www.notion.so/<database-id>?v=<view-id>
  • or (newer Notion URLs): https://app.notion.com/p/<database-id>
stringRequired.

Update Database

Update the title, properties schema, or archive status of an existing database.

ParameterDescriptionTypeRequired/Optional
Database IdThe ID of the database to update. The database ID can be provided with or without dashes.
To get the database ID, open the database in Notion. The database ID is the string of characters at the end of the URL:
  • https://www.notion.so/<database-id>?v=<view-id>
  • or (newer Notion URLs): https://app.notion.com/p/<database-id>
stringRequired.
TitleThe updated database title as a JSON array string. For example, [{"type":"text","text":{"content":"My Database"}}].string (JSON array)Optional.
PropertiesThe updated database properties schema as a JSON string. For example, {"Name":{"title":{}},"Status":{"select":{}}}.string (JSON)Optional.
ArchivedWhether to archive the database. Set to true to archive, or false to restore it.booleanOptional.

List Databases

List databases accessible to the integration.

ParameterDescriptionTypeRequired/Optional
Start CursorThe start cursor for pagination. To paginate through results, pass the nextCursor value from the previous response into this field.stringOptional.
Page SizeThe maximum number of entries to return. Maximum value is 100.integerOptional.

Query Database

Query a database to retrieve entries based on filter and sort criteria.

ParameterDescriptionTypeRequired/Optional
Database IdThe ID of the database to query. The database ID can be provided with or without dashes.
To get the database ID, open the database in Notion. The database ID is the string of characters at the end of the URL:
  • https://www.notion.so/<database-id>?v=<view-id>
  • or (newer Notion URLs): https://app.notion.com/p/<database-id>
stringRequired.
FilterThe filter conditions as a JSON string. Leave empty to return all entries.string (JSON)Optional.
SortsThe sort conditions as a JSON array string. For example, [{"property":"Name","direction":"ascending"}].string (JSON array)Optional.
Start CursorThe start cursor for pagination. To paginate through results, pass the nextCursor value from the previous response into this field.stringOptional.
Page SizeThe maximum number of entries to return. Maximum value is 100.integerOptional.

Retrieve Block

Retrieve the details of a block by its ID.

ParameterDescriptionTypeRequired/Optional
Block IdThe ID of the block to retrieve. The block ID can be provided with or without dashes.
To get the block ID, hover over the block in Notion, select the ⋮⋮ icon on the left, and select Copy link to block. The block ID is the string after # in the copied URL: https://www.notion.so/<page-title>-<page-id>?source=copy_link#<block-id>.
stringRequired.

Update Block

Update the content or archive status of an existing block.

ParameterDescriptionTypeRequired/Optional
Block IdThe ID of the block to update. The block ID can be provided with or without dashes.
To get the block ID, hover over the block in Notion, select the ⋮⋮ icon on the left, and select Copy link to block. The block ID is the string after # in the copied URL: https://www.notion.so/<page-title>-<page-id>?source=copy_link#<block-id>.
stringRequired.
Block ContentThe block content as a JSON string. The structure depends on the block type. For example, for a paragraph: {"paragraph":{"rich_text":[{"text":{"content":"Updated text"}}]}}.string (JSON)Optional.
ArchivedWhether to archive the block. Set to true to archive, or false to restore it.booleanOptional.

Delete Block

Delete a block by its ID. Deleting a block in Notion archives it rather than permanently removing it.

ParameterDescriptionTypeRequired/Optional
Block IdThe ID of the block to delete. The block ID can be provided with or without dashes.
To get the block ID, hover over the block in Notion, select the ⋮⋮ icon on the left, and select Copy link to block. The block ID is the string after # in the copied URL: https://www.notion.so/<page-title>-<page-id>?source=copy_link#<block-id>.
stringRequired.

List Block Children

Get child blocks of a page or block (with pagination)

ParameterDescriptionTypeRequired/Optional
Block IdThe ID of the page or block whose children you want to retrieve. The ID can be provided with or without dashes.
  • To get a page ID, open the page in Notion. The page ID is the string of characters at the end of the URL: https://www.notion.so/<page-title>-<page-id> or (newer Notion URLs): https://app.notion.com/p/<page-id>.
  • To get a block ID, hover over the block, select the ⋮⋮ icon on the left, and select Copy link to block. The block ID is the string after # in the copied URL: https://www.notion.so/<page-title>-<page-id>?source=copy_link#<block-id>.
stringRequired.
Start CursorThe start cursor for pagination. To paginate through results, pass the nextCursor value from the previous response into this field.stringOptional.
Page SizeThe maximum number of blocks to return. Maximum value is 100.integerOptional.

Append Block Children

Append new blocks to an existing page or block.

ParameterDescriptionTypeRequired/Optional
Block IdThe ID of the page or block to append children to. The ID can be provided with or without dashes.
  • To get a page ID, open the page in Notion. The page ID is the string of characters at the end of the URL: https://www.notion.so/<page-title>-<page-id> or (newer Notion URLs): https://app.notion.com/p/<page-id>.
  • To get a block ID, hover over the block, select the ⋮⋮ icon on the left, and select Copy link to block. The block ID is the string after # in the copied URL: https://www.notion.so/<page-title>-<page-id>?source=copy_link#<block-id>.
stringRequired.
ChildrenThe blocks to append as a JSON array string. For example, [{"object":"block","type":"paragraph","paragraph":{"rich_text":[{"text":{"content":"Hello"}}]}}].string (JSON array)Required.

Create Comment

Add a comment to a page or a discussion thread.

ParameterDescriptionTypeRequired/Optional
ParentThe parent page for the comment, provided as a JSON string. For example, {"type":"page_id","page_id":"<page-id>"}.
To get the page ID, open the page in Notion. The page ID is the string of characters at the end of the URL:
  • https://www.notion.so/<page-title>-<page-id>
  • or (newer Notion URLs): https://app.notion.com/p/<page-id>
string (JSON)Required.
Rich TextThe comment as a JSON array string. For example, [{"text":{"content":"This is a comment"}}].string (JSON array)Required.
Discussion IdThe ID of an existing discussion thread to add the comment to. If provided, the comment is added as a reply to that thread.
To get the discussion ID, copy the link to the comment in Notion. The discussion ID is the value of the d= parameter in the URL: https://www.notion.so/<page-title>-<page-id>?d=<discussion-id>&source=copy_link.
stringOptional.

List Comments

Retrieve comments for a page or block.

ParameterDescriptionTypeRequired/Optional
Block IdThe ID of the page or block to list comments from. The ID can be provided with or without dashes.
  • To get a page ID, open the page in Notion. The page ID is the string of characters at the end of the URL: https://www.notion.so/<page-title>-<page-id> or (newer Notion URLs): https://app.notion.com/p/<page-id>.
  • To get a block ID, hover over the block, select the ⋮⋮ icon on the left, and select Copy link to block. The block ID is the string after # in the copied URL: https://www.notion.so/<page-title>-<page-id>?source=copy_link#<block-id>.
stringRequired.
Start CursorThe start cursor for pagination. To paginate through results, pass the nextCursor value from the previous response into this field.stringOptional.
Page SizeThe maximum number of comments to return. Maximum value is 100.integerOptional.

List Users

Retrieve all users in the Notion workspace.

ParameterDescriptionTypeRequired/Optional
Start CursorThe start cursor for pagination. To paginate through results, pass the nextCursor value from the previous response into this field.stringOptional.
Page SizeThe maximum number of users to return. Maximum value is 100.integerOptional.

Retrieve User

Retrieve the details of a user by their ID.

ParameterDescriptionTypeRequired/Optional
User IdThe ID of the user to retrieve. The user ID can be provided with or without dashes.
To get the user ID, use the List Users operation and copy the id value from the response.
stringRequired.

Get Current User

Retrieve the bot user associated with the API token used in the integration.

This operation has no input parameters.

Search for pages and databases in the Notion workspace by title.

ParameterDescriptionTypeRequired/Optional
QueryThe search query string to match against page and database titles.stringRequired.
FilterFilter results by object type. Use page or database, or provide a full JSON string. For example, {"property":"object","value":"page"}.stringOptional.
SortThe sort direction for results. Use ascending or descending, or provide a full JSON string. For example, {"direction":"ascending","timestamp":"last_edited_time"}.stringOptional.
Start CursorThe start cursor for pagination. To paginate through results, pass the nextCursor value from the previous response into this field.stringOptional.
Page SizeThe maximum number of results to return. Maximum value is 100.integerOptional.