Skip to main content

Notion full reference

This is the full reference documentation for the Notion agent connector.

Supported entities and actions

The Notion connector supports the following entities and actions.

EntityActions
UsersList, Get, Context Store Search
PagesList, Create, Get, Update, Context Store Search
Data SourcesList, Get, Update, Context Store Search
BlocksList, Create, Get, Update, Context Store Search
CommentsList, Create, Context Store Search

Users

Users List

Returns a paginated list of users for the workspace

Python SDK

await notion.users.list()

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "users",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
start_cursorstringNoPagination cursor for next page
page_sizeintegerNoNumber of items per page (max 100)
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
typestring | null
namestring | null
avatar_urlstring | null
personobject | null
botobject | null
request_idstring | null

Meta

Field NameTypeDescription
next_cursorstring | null
has_moreboolean | null

Users Get

Retrieves a single user by ID

Python SDK

await notion.users.get(
user_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "users",
"action": "get",
"params": {
"user_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
user_idstringYesUser ID
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
typestring | null
namestring | null
avatar_urlstring | null
personobject | null
botobject | null
request_idstring | null

Search and filter users records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await notion.users.context_store_search(
query={"filter": {"eq": {"avatar_url": "<str>"}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "users",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"avatar_url": "<str>"}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
avatar_urlstringURL of the user's avatar
botobjectBot-specific data
idstringUnique identifier for the user
namestringUser's display name
objectobjectAlways user
personobjectPerson-specific data
typeobjectType of user (person or bot)
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].avatar_urlstringURL of the user's avatar
data[].botobjectBot-specific data
data[].idstringUnique identifier for the user
data[].namestringUser's display name
data[].objectobjectAlways user
data[].personobjectPerson-specific data
data[].typeobjectType of user (person or bot)

Pages

Pages List

Returns pages shared with the integration using the search endpoint

Python SDK

await notion.pages.list()

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "pages",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
filterobjectNo
filter.propertystringNo
filter.valuestringNo
sortobjectNo
sort.directionstringNo
sort.timestampstringNo
start_cursorstringNoPagination cursor
page_sizeintegerNo
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
coverobject | null
iconobject | null
parentobject | any
archivedboolean | null
in_trashboolean | null
is_archivedboolean | null
is_lockedboolean | null
propertiesobject | null
urlstring | null
public_urlstring | null
request_idstring | null

Meta

Field NameTypeDescription
next_cursorstring | null
has_moreboolean | null

Pages Create

Creates a new page as a child of an existing page or data source

Python SDK

await notion.pages.create(
parent={},
properties={},
children=[],
icon={},
cover={}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "pages",
"action": "create",
"params": {
"parent": {},
"properties": {},
"children": [],
"icon": {},
"cover": {}
}
}'

Parameters

Parameter NameTypeRequiredDescription
parentobjectYesParent of the page. Provide exactly one of page_id, database_id, data_source_id, or workspace.
propertiesobjectNoPage properties. For pages under a page, use title property. For data source pages, match the data source schema.
childrenarray<object>NoContent blocks to add to the page (max 100)
iconobject | nullNoIcon. Supports emoji, external URL, file upload, custom emoji, and Notion native icons. Set to null to remove.
coverobject | nullNoCover image. Supports external URL or file upload. Set to null to remove.
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
coverobject | null
iconobject | null
parentobject | any
archivedboolean | null
in_trashboolean | null
is_archivedboolean | null
is_lockedboolean | null
propertiesobject | null
urlstring | null
public_urlstring | null
request_idstring | null

Pages Get

Retrieves a page object using the ID specified

Python SDK

await notion.pages.get(
page_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "pages",
"action": "get",
"params": {
"page_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
page_idstringYesPage ID
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
coverobject | null
iconobject | null
parentobject | any
archivedboolean | null
in_trashboolean | null
is_archivedboolean | null
is_lockedboolean | null
propertiesobject | null
urlstring | null
public_urlstring | null
request_idstring | null

Pages Update

Updates page properties, icon, cover, or archived status

Python SDK

await notion.pages.update(
properties={},
icon={},
cover={},
archived=True,
in_trash=True,
page_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "pages",
"action": "update",
"params": {
"properties": {},
"icon": {},
"cover": {},
"archived": True,
"in_trash": True,
"page_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
propertiesobjectNoPage property values to update. Keys must match the page's property schema.
iconobject | nullNoIcon. Supports emoji, external URL, file upload, custom emoji, and Notion native icons. Set to null to remove.
coverobject | nullNoCover image. Supports external URL or file upload. Set to null to remove.
archivedbooleanNoSet to true to archive the page, false to un-archive
in_trashbooleanNoSet to true to move the page to trash, false to restore
page_idstringYesPage ID
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
coverobject | null
iconobject | null
parentobject | any
archivedboolean | null
in_trashboolean | null
is_archivedboolean | null
is_lockedboolean | null
propertiesobject | null
urlstring | null
public_urlstring | null
request_idstring | null

Search and filter pages records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await notion.pages.context_store_search(
query={"filter": {"eq": {"archived": True}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "pages",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
archivedbooleanIndicates whether the page is archived or not.
coverobjectURL or reference to the page cover image.
created_byobjectUser ID or name of the creator of the page.
created_timestringDate and time when the page was created.
iconobjectURL or reference to the page icon.
idstringUnique identifier of the page.
in_trashbooleanIndicates whether the page is in trash or not.
last_edited_byobjectUser ID or name of the last editor of the page.
last_edited_timestringDate and time when the page was last edited.
objectobjectType or category of the page object.
parentobjectID or reference to the parent page.
propertiesarrayCustom properties associated with the page.
public_urlstringPublicly accessible URL of the page.
urlstringURL of the page within the service.
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].archivedbooleanIndicates whether the page is archived or not.
data[].coverobjectURL or reference to the page cover image.
data[].created_byobjectUser ID or name of the creator of the page.
data[].created_timestringDate and time when the page was created.
data[].iconobjectURL or reference to the page icon.
data[].idstringUnique identifier of the page.
data[].in_trashbooleanIndicates whether the page is in trash or not.
data[].last_edited_byobjectUser ID or name of the last editor of the page.
data[].last_edited_timestringDate and time when the page was last edited.
data[].objectobjectType or category of the page object.
data[].parentobjectID or reference to the parent page.
data[].propertiesarrayCustom properties associated with the page.
data[].public_urlstringPublicly accessible URL of the page.
data[].urlstringURL of the page within the service.

Data Sources

Data Sources List

Returns data sources shared with the integration using the search endpoint

Python SDK

await notion.data_sources.list()

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "data_sources",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
filterobjectNo
filter.propertystringNo
filter.valuestringNo
sortobjectNo
sort.directionstringNo
sort.timestampstringNo
start_cursorstringNoPagination cursor
page_sizeintegerNo
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
titlearray | null
title[].typestring | null
title[].textobject | null
title[].annotationsobject | null
title[].plain_textstring | null
title[].hrefstring | null
descriptionarray | null
description[].typestring | null
description[].textobject | null
description[].annotationsobject | null
description[].plain_textstring | null
description[].hrefstring | null
iconobject | null
coverobject | null
propertiesobject | null
parentobject | any
database_parentobject | any
urlstring | null
public_urlstring | null
archivedboolean | null
in_trashboolean | null
is_archivedboolean | null
is_inlineboolean | null
is_lockedboolean | null
request_idstring | null

Meta

Field NameTypeDescription
next_cursorstring | null
has_moreboolean | null

Data Sources Get

Retrieves a data source object using the ID specified

Python SDK

await notion.data_sources.get(
data_source_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "data_sources",
"action": "get",
"params": {
"data_source_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
data_source_idstringYesData Source ID
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
titlearray | null
title[].typestring | null
title[].textobject | null
title[].annotationsobject | null
title[].plain_textstring | null
title[].hrefstring | null
descriptionarray | null
description[].typestring | null
description[].textobject | null
description[].annotationsobject | null
description[].plain_textstring | null
description[].hrefstring | null
iconobject | null
coverobject | null
propertiesobject | null
parentobject | any
database_parentobject | any
urlstring | null
public_urlstring | null
archivedboolean | null
in_trashboolean | null
is_archivedboolean | null
is_inlineboolean | null
is_lockedboolean | null
request_idstring | null

Data Sources Update

Updates a data source's title, description, icon, properties, or trash status

Python SDK

await notion.data_sources.update(
title=[],
description=[],
properties={},
icon={},
cover={},
archived=True,
in_trash=True,
data_source_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "data_sources",
"action": "update",
"params": {
"title": [],
"description": [],
"properties": {},
"icon": {},
"cover": {},
"archived": True,
"in_trash": True,
"data_source_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
titlearray<object>NoUpdated title of the data source as rich text
title.typestringNo
title.textobjectNo
title.text.contentstringNo
title.text.linkobject | nullNo
title.mentionobjectNo
title.equationobjectNo
title.equation.expressionstringNo
title.annotationsobjectNo
title.annotations.boldbooleanNo
title.annotations.italicbooleanNo
title.annotations.strikethroughbooleanNo
title.annotations.underlinebooleanNo
title.annotations.codebooleanNo
title.annotations.colorstringNo
descriptionarray<object>NoUpdated description of the data source as rich text
description.typestringNo
description.textobjectNo
description.text.contentstringNo
description.text.linkobject | nullNo
description.mentionobjectNo
description.equationobjectNo
description.equation.expressionstringNo
description.annotationsobjectNo
description.annotations.boldbooleanNo
description.annotations.italicbooleanNo
description.annotations.strikethroughbooleanNo
description.annotations.underlinebooleanNo
description.annotations.codebooleanNo
description.annotations.colorstringNo
propertiesobjectNoData source property schema to update. Keys are property names or IDs. Set a property to null to remove it.
iconobject | nullNoIcon. Supports emoji, external URL, file upload, custom emoji, and Notion native icons. Set to null to remove.
coverobject | nullNoCover image. Supports external URL or file upload. Set to null to remove.
archivedbooleanNoSet to true to archive the data source
in_trashbooleanNoSet to true to move the data source to trash
data_source_idstringYesData source ID
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
titlearray | null
title[].typestring | null
title[].textobject | null
title[].annotationsobject | null
title[].plain_textstring | null
title[].hrefstring | null
descriptionarray | null
description[].typestring | null
description[].textobject | null
description[].annotationsobject | null
description[].plain_textstring | null
description[].hrefstring | null
iconobject | null
coverobject | null
propertiesobject | null
parentobject | any
database_parentobject | any
urlstring | null
public_urlstring | null
archivedboolean | null
in_trashboolean | null
is_archivedboolean | null
is_inlineboolean | null
is_lockedboolean | null
request_idstring | null

Search and filter data sources records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await notion.data_sources.context_store_search(
query={"filter": {"eq": {"archived": True}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "data_sources",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
archivedbooleanIndicates if the data source is archived or not.
coverobjectURL or reference to the cover image of the data source.
created_byobjectThe user who created the data source.
created_timestringThe timestamp when the data source was created.
database_parentobjectThe grandparent of the data source (parent of the database).
descriptionarrayDescription text associated with the data source.
iconobjectURL or reference to the icon of the data source.
idstringUnique identifier of the data source.
is_inlinebooleanIndicates if the data source is displayed inline.
last_edited_byobjectThe user who last edited the data source.
last_edited_timestringThe timestamp when the data source was last edited.
objectobjectThe type of object (data_source).
parentobjectThe parent database of the data source.
propertiesarraySchema of properties for the data source.
public_urlstringPublic URL to access the data source.
titlearrayTitle or name of the data source.
urlstringURL or reference to access the data source.
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].archivedbooleanIndicates if the data source is archived or not.
data[].coverobjectURL or reference to the cover image of the data source.
data[].created_byobjectThe user who created the data source.
data[].created_timestringThe timestamp when the data source was created.
data[].database_parentobjectThe grandparent of the data source (parent of the database).
data[].descriptionarrayDescription text associated with the data source.
data[].iconobjectURL or reference to the icon of the data source.
data[].idstringUnique identifier of the data source.
data[].is_inlinebooleanIndicates if the data source is displayed inline.
data[].last_edited_byobjectThe user who last edited the data source.
data[].last_edited_timestringThe timestamp when the data source was last edited.
data[].objectobjectThe type of object (data_source).
data[].parentobjectThe parent database of the data source.
data[].propertiesarraySchema of properties for the data source.
data[].public_urlstringPublic URL to access the data source.
data[].titlearrayTitle or name of the data source.
data[].urlstringURL or reference to access the data source.

Blocks

Blocks List

Returns a paginated list of child blocks for the specified block

Python SDK

await notion.blocks.list(
block_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "blocks",
"action": "list",
"params": {
"block_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
block_idstringYesBlock or page ID
start_cursorstringNoPagination cursor for next page
page_sizeintegerNoNumber of items per page (max 100)
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
typestring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
has_childrenboolean | null
archivedboolean | null
in_trashboolean | null
parentobject | any
paragraphobject | null
heading_1object | null
heading_2object | null
heading_3object | null
bulleted_list_itemobject | null
numbered_list_itemobject | null
to_doobject | null
toggleobject | null
codeobject | null
child_pageobject | null
child_databaseobject | null
calloutobject | null
quoteobject | null
dividerobject | null
table_of_contentsobject | null
bookmarkobject | null
imageobject | null
videoobject | null
fileobject | null
pdfobject | null
embedobject | null
equationobject | null
tableobject | null
table_rowobject | null
columnobject | null
column_listobject | null
synced_blockobject | null
templateobject | null
link_previewobject | null
link_to_pageobject | null
breadcrumbobject | null
unsupportedobject | null
request_idstring | null

Meta

Field NameTypeDescription
next_cursorstring | null
has_moreboolean | null

Blocks Create

Creates and appends new children blocks to the specified parent block or page

Python SDK

await notion.blocks.create(
children=[],
block_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "blocks",
"action": "create",
"params": {
"children": [],
"block_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
childrenarray<object>YesArray of block objects to append (max 100). Each block must specify a type and corresponding content.
children.typestringNoBlock type: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, code, quote, callout, divider, bookmark, embed, equation, table_of_contents, image, video, file, pdf, audio, column_list, column, table, synced_block, link_to_page, etc.
children.paragraphobjectNoParagraph block content
children.paragraph.rich_textarray<object>No
children.paragraph.rich_text.typestringNo
children.paragraph.rich_text.textobjectNo
children.paragraph.rich_text.text.contentstringNo
children.paragraph.rich_text.text.linkobject | nullNo
children.paragraph.rich_text.mentionobjectNo
children.paragraph.rich_text.equationobjectNo
children.paragraph.rich_text.equation.expressionstringNo
children.paragraph.rich_text.annotationsobjectNo
children.paragraph.rich_text.annotations.boldbooleanNo
children.paragraph.rich_text.annotations.italicbooleanNo
children.paragraph.rich_text.annotations.strikethroughbooleanNo
children.paragraph.rich_text.annotations.underlinebooleanNo
children.paragraph.rich_text.annotations.codebooleanNo
children.paragraph.rich_text.annotations.colorstringNo
children.paragraph.colorstringNo
children.heading_1objectNoHeading 1 block content
children.heading_1.rich_textarray<object>No
children.heading_1.rich_text.typestringNo
children.heading_1.rich_text.textobjectNo
children.heading_1.rich_text.text.contentstringNo
children.heading_1.rich_text.text.linkobject | nullNo
children.heading_1.rich_text.mentionobjectNo
children.heading_1.rich_text.equationobjectNo
children.heading_1.rich_text.equation.expressionstringNo
children.heading_1.rich_text.annotationsobjectNo
children.heading_1.rich_text.annotations.boldbooleanNo
children.heading_1.rich_text.annotations.italicbooleanNo
children.heading_1.rich_text.annotations.strikethroughbooleanNo
children.heading_1.rich_text.annotations.underlinebooleanNo
children.heading_1.rich_text.annotations.codebooleanNo
children.heading_1.rich_text.annotations.colorstringNo
children.heading_1.colorstringNo
children.heading_1.is_toggleablebooleanNo
children.heading_2objectNoHeading 2 block content
children.heading_2.rich_textarray<object>No
children.heading_2.rich_text.typestringNo
children.heading_2.rich_text.textobjectNo
children.heading_2.rich_text.text.contentstringNo
children.heading_2.rich_text.text.linkobject | nullNo
children.heading_2.rich_text.mentionobjectNo
children.heading_2.rich_text.equationobjectNo
children.heading_2.rich_text.equation.expressionstringNo
children.heading_2.rich_text.annotationsobjectNo
children.heading_2.rich_text.annotations.boldbooleanNo
children.heading_2.rich_text.annotations.italicbooleanNo
children.heading_2.rich_text.annotations.strikethroughbooleanNo
children.heading_2.rich_text.annotations.underlinebooleanNo
children.heading_2.rich_text.annotations.codebooleanNo
children.heading_2.rich_text.annotations.colorstringNo
children.heading_2.colorstringNo
children.heading_2.is_toggleablebooleanNo
children.heading_3objectNoHeading 3 block content
children.heading_3.rich_textarray<object>No
children.heading_3.rich_text.typestringNo
children.heading_3.rich_text.textobjectNo
children.heading_3.rich_text.text.contentstringNo
children.heading_3.rich_text.text.linkobject | nullNo
children.heading_3.rich_text.mentionobjectNo
children.heading_3.rich_text.equationobjectNo
children.heading_3.rich_text.equation.expressionstringNo
children.heading_3.rich_text.annotationsobjectNo
children.heading_3.rich_text.annotations.boldbooleanNo
children.heading_3.rich_text.annotations.italicbooleanNo
children.heading_3.rich_text.annotations.strikethroughbooleanNo
children.heading_3.rich_text.annotations.underlinebooleanNo
children.heading_3.rich_text.annotations.codebooleanNo
children.heading_3.rich_text.annotations.colorstringNo
children.heading_3.colorstringNo
children.heading_3.is_toggleablebooleanNo
children.bulleted_list_itemobjectNoBulleted list item content
children.bulleted_list_item.rich_textarray<object>No
children.bulleted_list_item.rich_text.typestringNo
children.bulleted_list_item.rich_text.textobjectNo
children.bulleted_list_item.rich_text.text.contentstringNo
children.bulleted_list_item.rich_text.text.linkobject | nullNo
children.bulleted_list_item.rich_text.mentionobjectNo
children.bulleted_list_item.rich_text.equationobjectNo
children.bulleted_list_item.rich_text.equation.expressionstringNo
children.bulleted_list_item.rich_text.annotationsobjectNo
children.bulleted_list_item.rich_text.annotations.boldbooleanNo
children.bulleted_list_item.rich_text.annotations.italicbooleanNo
children.bulleted_list_item.rich_text.annotations.strikethroughbooleanNo
children.bulleted_list_item.rich_text.annotations.underlinebooleanNo
children.bulleted_list_item.rich_text.annotations.codebooleanNo
children.bulleted_list_item.rich_text.annotations.colorstringNo
children.bulleted_list_item.colorstringNo
children.numbered_list_itemobjectNoNumbered list item content
children.numbered_list_item.rich_textarray<object>No
children.numbered_list_item.rich_text.typestringNo
children.numbered_list_item.rich_text.textobjectNo
children.numbered_list_item.rich_text.text.contentstringNo
children.numbered_list_item.rich_text.text.linkobject | nullNo
children.numbered_list_item.rich_text.mentionobjectNo
children.numbered_list_item.rich_text.equationobjectNo
children.numbered_list_item.rich_text.equation.expressionstringNo
children.numbered_list_item.rich_text.annotationsobjectNo
children.numbered_list_item.rich_text.annotations.boldbooleanNo
children.numbered_list_item.rich_text.annotations.italicbooleanNo
children.numbered_list_item.rich_text.annotations.strikethroughbooleanNo
children.numbered_list_item.rich_text.annotations.underlinebooleanNo
children.numbered_list_item.rich_text.annotations.codebooleanNo
children.numbered_list_item.rich_text.annotations.colorstringNo
children.numbered_list_item.colorstringNo
children.to_doobjectNoTo-do block content
children.to_do.rich_textarray<object>No
children.to_do.rich_text.typestringNo
children.to_do.rich_text.textobjectNo
children.to_do.rich_text.text.contentstringNo
children.to_do.rich_text.text.linkobject | nullNo
children.to_do.rich_text.mentionobjectNo
children.to_do.rich_text.equationobjectNo
children.to_do.rich_text.equation.expressionstringNo
children.to_do.rich_text.annotationsobjectNo
children.to_do.rich_text.annotations.boldbooleanNo
children.to_do.rich_text.annotations.italicbooleanNo
children.to_do.rich_text.annotations.strikethroughbooleanNo
children.to_do.rich_text.annotations.underlinebooleanNo
children.to_do.rich_text.annotations.codebooleanNo
children.to_do.rich_text.annotations.colorstringNo
children.to_do.checkedbooleanNo
children.to_do.colorstringNo
children.toggleobjectNoToggle block content
children.toggle.rich_textarray<object>No
children.toggle.rich_text.typestringNo
children.toggle.rich_text.textobjectNo
children.toggle.rich_text.text.contentstringNo
children.toggle.rich_text.text.linkobject | nullNo
children.toggle.rich_text.mentionobjectNo
children.toggle.rich_text.equationobjectNo
children.toggle.rich_text.equation.expressionstringNo
children.toggle.rich_text.annotationsobjectNo
children.toggle.rich_text.annotations.boldbooleanNo
children.toggle.rich_text.annotations.italicbooleanNo
children.toggle.rich_text.annotations.strikethroughbooleanNo
children.toggle.rich_text.annotations.underlinebooleanNo
children.toggle.rich_text.annotations.codebooleanNo
children.toggle.rich_text.annotations.colorstringNo
children.toggle.colorstringNo
children.codeobjectNoCode block content
children.code.rich_textarray<object>No
children.code.rich_text.typestringNo
children.code.rich_text.textobjectNo
children.code.rich_text.text.contentstringNo
children.code.rich_text.text.linkobject | nullNo
children.code.rich_text.mentionobjectNo
children.code.rich_text.equationobjectNo
children.code.rich_text.equation.expressionstringNo
children.code.rich_text.annotationsobjectNo
children.code.rich_text.annotations.boldbooleanNo
children.code.rich_text.annotations.italicbooleanNo
children.code.rich_text.annotations.strikethroughbooleanNo
children.code.rich_text.annotations.underlinebooleanNo
children.code.rich_text.annotations.codebooleanNo
children.code.rich_text.annotations.colorstringNo
children.code.languagestringNoProgramming language for syntax highlighting
children.quoteobjectNoQuote block content
children.quote.rich_textarray<object>No
children.quote.rich_text.typestringNo
children.quote.rich_text.textobjectNo
children.quote.rich_text.text.contentstringNo
children.quote.rich_text.text.linkobject | nullNo
children.quote.rich_text.mentionobjectNo
children.quote.rich_text.equationobjectNo
children.quote.rich_text.equation.expressionstringNo
children.quote.rich_text.annotationsobjectNo
children.quote.rich_text.annotations.boldbooleanNo
children.quote.rich_text.annotations.italicbooleanNo
children.quote.rich_text.annotations.strikethroughbooleanNo
children.quote.rich_text.annotations.underlinebooleanNo
children.quote.rich_text.annotations.codebooleanNo
children.quote.rich_text.annotations.colorstringNo
children.quote.colorstringNo
children.calloutobjectNoCallout block content
children.callout.rich_textarray<object>No
children.callout.rich_text.typestringNo
children.callout.rich_text.textobjectNo
children.callout.rich_text.text.contentstringNo
children.callout.rich_text.text.linkobject | nullNo
children.callout.rich_text.mentionobjectNo
children.callout.rich_text.equationobjectNo
children.callout.rich_text.equation.expressionstringNo
children.callout.rich_text.annotationsobjectNo
children.callout.rich_text.annotations.boldbooleanNo
children.callout.rich_text.annotations.italicbooleanNo
children.callout.rich_text.annotations.strikethroughbooleanNo
children.callout.rich_text.annotations.underlinebooleanNo
children.callout.rich_text.annotations.codebooleanNo
children.callout.rich_text.annotations.colorstringNo
children.callout.iconobjectNo
children.callout.colorstringNo
children.dividerobjectNoDivider block (empty object)
children.bookmarkobjectNoBookmark block
children.bookmark.urlstringNoURL to bookmark
children.bookmark.captionarray<object>No
children.bookmark.caption.typestringNo
children.bookmark.caption.textobjectNo
children.bookmark.caption.text.contentstringNo
children.bookmark.caption.text.linkobject | nullNo
children.bookmark.caption.mentionobjectNo
children.bookmark.caption.equationobjectNo
children.bookmark.caption.equation.expressionstringNo
children.bookmark.caption.annotationsobjectNo
children.bookmark.caption.annotations.boldbooleanNo
children.bookmark.caption.annotations.italicbooleanNo
children.bookmark.caption.annotations.strikethroughbooleanNo
children.bookmark.caption.annotations.underlinebooleanNo
children.bookmark.caption.annotations.codebooleanNo
children.bookmark.caption.annotations.colorstringNo
children.embedobjectNoEmbed block
children.embed.urlstringNoURL to embed
children.equationobjectNoEquation block
children.equation.expressionstringNoLaTeX expression
children.table_of_contentsobjectNoTable of contents block
children.table_of_contents.colorstringNo
children.imageobjectNoMedia file. Use external URL or file upload.
children.image.typestringNoFile type: external or file_upload
children.image.externalobjectNo
children.image.external.urlstringNo
children.image.file_uploadobjectNo
children.image.file_upload.idstringNo
children.videoobjectNoMedia file. Use external URL or file upload.
children.video.typestringNoFile type: external or file_upload
children.video.externalobjectNo
children.video.external.urlstringNo
children.video.file_uploadobjectNo
children.video.file_upload.idstringNo
children.fileobjectNoMedia file. Use external URL or file upload.
children.file.typestringNoFile type: external or file_upload
children.file.externalobjectNo
children.file.external.urlstringNo
children.file.file_uploadobjectNo
children.file.file_upload.idstringNo
children.pdfobjectNoMedia file. Use external URL or file upload.
children.pdf.typestringNoFile type: external or file_upload
children.pdf.externalobjectNo
children.pdf.external.urlstringNo
children.pdf.file_uploadobjectNo
children.pdf.file_upload.idstringNo
children.audioobjectNoMedia file. Use external URL or file upload.
children.audio.typestringNoFile type: external or file_upload
children.audio.externalobjectNo
children.audio.external.urlstringNo
children.audio.file_uploadobjectNo
children.audio.file_upload.idstringNo
block_idstringYesBlock or page ID to append children to
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
typestring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
has_childrenboolean | null
archivedboolean | null
in_trashboolean | null
parentobject | any
paragraphobject | null
heading_1object | null
heading_2object | null
heading_3object | null
bulleted_list_itemobject | null
numbered_list_itemobject | null
to_doobject | null
toggleobject | null
codeobject | null
child_pageobject | null
child_databaseobject | null
calloutobject | null
quoteobject | null
dividerobject | null
table_of_contentsobject | null
bookmarkobject | null
imageobject | null
videoobject | null
fileobject | null
pdfobject | null
embedobject | null
equationobject | null
tableobject | null
table_rowobject | null
columnobject | null
column_listobject | null
synced_blockobject | null
templateobject | null
link_previewobject | null
link_to_pageobject | null
breadcrumbobject | null
unsupportedobject | null
request_idstring | null

Blocks Get

Retrieves a block object using the ID specified

Python SDK

await notion.blocks.get(
block_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "blocks",
"action": "get",
"params": {
"block_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
block_idstringYesBlock ID
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
typestring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
has_childrenboolean | null
archivedboolean | null
in_trashboolean | null
parentobject | any
paragraphobject | null
heading_1object | null
heading_2object | null
heading_3object | null
bulleted_list_itemobject | null
numbered_list_itemobject | null
to_doobject | null
toggleobject | null
codeobject | null
child_pageobject | null
child_databaseobject | null
calloutobject | null
quoteobject | null
dividerobject | null
table_of_contentsobject | null
bookmarkobject | null
imageobject | null
videoobject | null
fileobject | null
pdfobject | null
embedobject | null
equationobject | null
tableobject | null
table_rowobject | null
columnobject | null
column_listobject | null
synced_blockobject | null
templateobject | null
link_previewobject | null
link_to_pageobject | null
breadcrumbobject | null
unsupportedobject | null
request_idstring | null

Blocks Update

Updates the content of a block based on its type

Python SDK

await notion.blocks.update(
paragraph={},
heading_1={},
heading_2={},
heading_3={},
bulleted_list_item={},
numbered_list_item={},
to_do={},
toggle={},
code={},
quote={},
callout={},
bookmark={},
embed={},
equation={},
image={},
video={},
file={},
pdf={},
audio={},
table={},
archived=True,
block_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "blocks",
"action": "update",
"params": {
"paragraph": {},
"heading_1": {},
"heading_2": {},
"heading_3": {},
"bulleted_list_item": {},
"numbered_list_item": {},
"to_do": {},
"toggle": {},
"code": {},
"quote": {},
"callout": {},
"bookmark": {},
"embed": {},
"equation": {},
"image": {},
"video": {},
"file": {},
"pdf": {},
"audio": {},
"table": {},
"archived": True,
"block_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
paragraphobjectNoUpdated paragraph content
paragraph.rich_textarray<object>No
paragraph.rich_text.typestringNo
paragraph.rich_text.textobjectNo
paragraph.rich_text.text.contentstringNo
paragraph.rich_text.text.linkobject | nullNo
paragraph.rich_text.mentionobjectNo
paragraph.rich_text.equationobjectNo
paragraph.rich_text.equation.expressionstringNo
paragraph.rich_text.annotationsobjectNo
paragraph.rich_text.annotations.boldbooleanNo
paragraph.rich_text.annotations.italicbooleanNo
paragraph.rich_text.annotations.strikethroughbooleanNo
paragraph.rich_text.annotations.underlinebooleanNo
paragraph.rich_text.annotations.codebooleanNo
paragraph.rich_text.annotations.colorstringNo
paragraph.colorstringNo
heading_1objectNoUpdated heading 1 content
heading_1.rich_textarray<object>No
heading_1.rich_text.typestringNo
heading_1.rich_text.textobjectNo
heading_1.rich_text.text.contentstringNo
heading_1.rich_text.text.linkobject | nullNo
heading_1.rich_text.mentionobjectNo
heading_1.rich_text.equationobjectNo
heading_1.rich_text.equation.expressionstringNo
heading_1.rich_text.annotationsobjectNo
heading_1.rich_text.annotations.boldbooleanNo
heading_1.rich_text.annotations.italicbooleanNo
heading_1.rich_text.annotations.strikethroughbooleanNo
heading_1.rich_text.annotations.underlinebooleanNo
heading_1.rich_text.annotations.codebooleanNo
heading_1.rich_text.annotations.colorstringNo
heading_1.colorstringNo
heading_1.is_toggleablebooleanNo
heading_2objectNoUpdated heading 2 content
heading_2.rich_textarray<object>No
heading_2.rich_text.typestringNo
heading_2.rich_text.textobjectNo
heading_2.rich_text.text.contentstringNo
heading_2.rich_text.text.linkobject | nullNo
heading_2.rich_text.mentionobjectNo
heading_2.rich_text.equationobjectNo
heading_2.rich_text.equation.expressionstringNo
heading_2.rich_text.annotationsobjectNo
heading_2.rich_text.annotations.boldbooleanNo
heading_2.rich_text.annotations.italicbooleanNo
heading_2.rich_text.annotations.strikethroughbooleanNo
heading_2.rich_text.annotations.underlinebooleanNo
heading_2.rich_text.annotations.codebooleanNo
heading_2.rich_text.annotations.colorstringNo
heading_2.colorstringNo
heading_2.is_toggleablebooleanNo
heading_3objectNoUpdated heading 3 content
heading_3.rich_textarray<object>No
heading_3.rich_text.typestringNo
heading_3.rich_text.textobjectNo
heading_3.rich_text.text.contentstringNo
heading_3.rich_text.text.linkobject | nullNo
heading_3.rich_text.mentionobjectNo
heading_3.rich_text.equationobjectNo
heading_3.rich_text.equation.expressionstringNo
heading_3.rich_text.annotationsobjectNo
heading_3.rich_text.annotations.boldbooleanNo
heading_3.rich_text.annotations.italicbooleanNo
heading_3.rich_text.annotations.strikethroughbooleanNo
heading_3.rich_text.annotations.underlinebooleanNo
heading_3.rich_text.annotations.codebooleanNo
heading_3.rich_text.annotations.colorstringNo
heading_3.colorstringNo
heading_3.is_toggleablebooleanNo
bulleted_list_itemobjectNoUpdated bulleted list item
bulleted_list_item.rich_textarray<object>No
bulleted_list_item.rich_text.typestringNo
bulleted_list_item.rich_text.textobjectNo
bulleted_list_item.rich_text.text.contentstringNo
bulleted_list_item.rich_text.text.linkobject | nullNo
bulleted_list_item.rich_text.mentionobjectNo
bulleted_list_item.rich_text.equationobjectNo
bulleted_list_item.rich_text.equation.expressionstringNo
bulleted_list_item.rich_text.annotationsobjectNo
bulleted_list_item.rich_text.annotations.boldbooleanNo
bulleted_list_item.rich_text.annotations.italicbooleanNo
bulleted_list_item.rich_text.annotations.strikethroughbooleanNo
bulleted_list_item.rich_text.annotations.underlinebooleanNo
bulleted_list_item.rich_text.annotations.codebooleanNo
bulleted_list_item.rich_text.annotations.colorstringNo
bulleted_list_item.colorstringNo
numbered_list_itemobjectNoUpdated numbered list item
numbered_list_item.rich_textarray<object>No
numbered_list_item.rich_text.typestringNo
numbered_list_item.rich_text.textobjectNo
numbered_list_item.rich_text.text.contentstringNo
numbered_list_item.rich_text.text.linkobject | nullNo
numbered_list_item.rich_text.mentionobjectNo
numbered_list_item.rich_text.equationobjectNo
numbered_list_item.rich_text.equation.expressionstringNo
numbered_list_item.rich_text.annotationsobjectNo
numbered_list_item.rich_text.annotations.boldbooleanNo
numbered_list_item.rich_text.annotations.italicbooleanNo
numbered_list_item.rich_text.annotations.strikethroughbooleanNo
numbered_list_item.rich_text.annotations.underlinebooleanNo
numbered_list_item.rich_text.annotations.codebooleanNo
numbered_list_item.rich_text.annotations.colorstringNo
numbered_list_item.colorstringNo
to_doobjectNoUpdated to-do content
to_do.rich_textarray<object>No
to_do.rich_text.typestringNo
to_do.rich_text.textobjectNo
to_do.rich_text.text.contentstringNo
to_do.rich_text.text.linkobject | nullNo
to_do.rich_text.mentionobjectNo
to_do.rich_text.equationobjectNo
to_do.rich_text.equation.expressionstringNo
to_do.rich_text.annotationsobjectNo
to_do.rich_text.annotations.boldbooleanNo
to_do.rich_text.annotations.italicbooleanNo
to_do.rich_text.annotations.strikethroughbooleanNo
to_do.rich_text.annotations.underlinebooleanNo
to_do.rich_text.annotations.codebooleanNo
to_do.rich_text.annotations.colorstringNo
to_do.checkedbooleanNo
to_do.colorstringNo
toggleobjectNoUpdated toggle content
toggle.rich_textarray<object>No
toggle.rich_text.typestringNo
toggle.rich_text.textobjectNo
toggle.rich_text.text.contentstringNo
toggle.rich_text.text.linkobject | nullNo
toggle.rich_text.mentionobjectNo
toggle.rich_text.equationobjectNo
toggle.rich_text.equation.expressionstringNo
toggle.rich_text.annotationsobjectNo
toggle.rich_text.annotations.boldbooleanNo
toggle.rich_text.annotations.italicbooleanNo
toggle.rich_text.annotations.strikethroughbooleanNo
toggle.rich_text.annotations.underlinebooleanNo
toggle.rich_text.annotations.codebooleanNo
toggle.rich_text.annotations.colorstringNo
toggle.colorstringNo
codeobjectNoUpdated code block content
code.rich_textarray<object>No
code.rich_text.typestringNo
code.rich_text.textobjectNo
code.rich_text.text.contentstringNo
code.rich_text.text.linkobject | nullNo
code.rich_text.mentionobjectNo
code.rich_text.equationobjectNo
code.rich_text.equation.expressionstringNo
code.rich_text.annotationsobjectNo
code.rich_text.annotations.boldbooleanNo
code.rich_text.annotations.italicbooleanNo
code.rich_text.annotations.strikethroughbooleanNo
code.rich_text.annotations.underlinebooleanNo
code.rich_text.annotations.codebooleanNo
code.rich_text.annotations.colorstringNo
code.languagestringNo
code.captionarray<object>No
code.caption.typestringNo
code.caption.textobjectNo
code.caption.text.contentstringNo
code.caption.text.linkobject | nullNo
code.caption.mentionobjectNo
code.caption.equationobjectNo
code.caption.equation.expressionstringNo
code.caption.annotationsobjectNo
code.caption.annotations.boldbooleanNo
code.caption.annotations.italicbooleanNo
code.caption.annotations.strikethroughbooleanNo
code.caption.annotations.underlinebooleanNo
code.caption.annotations.codebooleanNo
code.caption.annotations.colorstringNo
quoteobjectNoUpdated quote content
quote.rich_textarray<object>No
quote.rich_text.typestringNo
quote.rich_text.textobjectNo
quote.rich_text.text.contentstringNo
quote.rich_text.text.linkobject | nullNo
quote.rich_text.mentionobjectNo
quote.rich_text.equationobjectNo
quote.rich_text.equation.expressionstringNo
quote.rich_text.annotationsobjectNo
quote.rich_text.annotations.boldbooleanNo
quote.rich_text.annotations.italicbooleanNo
quote.rich_text.annotations.strikethroughbooleanNo
quote.rich_text.annotations.underlinebooleanNo
quote.rich_text.annotations.codebooleanNo
quote.rich_text.annotations.colorstringNo
quote.colorstringNo
calloutobjectNoUpdated callout content
callout.rich_textarray<object>No
callout.rich_text.typestringNo
callout.rich_text.textobjectNo
callout.rich_text.text.contentstringNo
callout.rich_text.text.linkobject | nullNo
callout.rich_text.mentionobjectNo
callout.rich_text.equationobjectNo
callout.rich_text.equation.expressionstringNo
callout.rich_text.annotationsobjectNo
callout.rich_text.annotations.boldbooleanNo
callout.rich_text.annotations.italicbooleanNo
callout.rich_text.annotations.strikethroughbooleanNo
callout.rich_text.annotations.underlinebooleanNo
callout.rich_text.annotations.codebooleanNo
callout.rich_text.annotations.colorstringNo
callout.iconobjectNo
callout.colorstringNo
bookmarkobjectNoUpdated bookmark
bookmark.urlstringNo
bookmark.captionarray<object>No
bookmark.caption.typestringNo
bookmark.caption.textobjectNo
bookmark.caption.text.contentstringNo
bookmark.caption.text.linkobject | nullNo
bookmark.caption.mentionobjectNo
bookmark.caption.equationobjectNo
bookmark.caption.equation.expressionstringNo
bookmark.caption.annotationsobjectNo
bookmark.caption.annotations.boldbooleanNo
bookmark.caption.annotations.italicbooleanNo
bookmark.caption.annotations.strikethroughbooleanNo
bookmark.caption.annotations.underlinebooleanNo
bookmark.caption.annotations.codebooleanNo
bookmark.caption.annotations.colorstringNo
embedobjectNoUpdated embed
embed.urlstringNo
equationobjectNoUpdated equation
equation.expressionstringNo
imageobjectNoMedia file. Use external URL or file upload.
image.typestringNoFile type: external or file_upload
image.externalobjectNo
image.external.urlstringNo
image.file_uploadobjectNo
image.file_upload.idstringNo
videoobjectNoMedia file. Use external URL or file upload.
video.typestringNoFile type: external or file_upload
video.externalobjectNo
video.external.urlstringNo
video.file_uploadobjectNo
video.file_upload.idstringNo
fileobjectNoMedia file. Use external URL or file upload.
file.typestringNoFile type: external or file_upload
file.externalobjectNo
file.external.urlstringNo
file.file_uploadobjectNo
file.file_upload.idstringNo
pdfobjectNoMedia file. Use external URL or file upload.
pdf.typestringNoFile type: external or file_upload
pdf.externalobjectNo
pdf.external.urlstringNo
pdf.file_uploadobjectNo
pdf.file_upload.idstringNo
audioobjectNoMedia file. Use external URL or file upload.
audio.typestringNoFile type: external or file_upload
audio.externalobjectNo
audio.external.urlstringNo
audio.file_uploadobjectNo
audio.file_upload.idstringNo
tableobjectNoUpdated table properties
table.has_column_headerbooleanNo
table.has_row_headerbooleanNo
archivedbooleanNoSet to true to archive the block (API version 2025-09-03)
block_idstringYesBlock ID
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
typestring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
last_edited_byobject | null
has_childrenboolean | null
archivedboolean | null
in_trashboolean | null
parentobject | any
paragraphobject | null
heading_1object | null
heading_2object | null
heading_3object | null
bulleted_list_itemobject | null
numbered_list_itemobject | null
to_doobject | null
toggleobject | null
codeobject | null
child_pageobject | null
child_databaseobject | null
calloutobject | null
quoteobject | null
dividerobject | null
table_of_contentsobject | null
bookmarkobject | null
imageobject | null
videoobject | null
fileobject | null
pdfobject | null
embedobject | null
equationobject | null
tableobject | null
table_rowobject | null
columnobject | null
column_listobject | null
synced_blockobject | null
templateobject | null
link_previewobject | null
link_to_pageobject | null
breadcrumbobject | null
unsupportedobject | null
request_idstring | null

Search and filter blocks records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await notion.blocks.context_store_search(
query={"filter": {"eq": {"archived": True}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "blocks",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"archived": True}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
archivedbooleanIndicates if the block is archived or not.
bookmarkobjectRepresents a bookmark within the block
breadcrumbobjectRepresents a breadcrumb block.
bulleted_list_itemobjectRepresents an item in a bulleted list.
calloutobjectDescribes a callout message or content in the block
child_databaseobjectRepresents a child database block.
child_pageobjectRepresents a child page block.
codeobjectContains code snippets or blocks in the block content
columnobjectRepresents a column block.
column_listobjectRepresents a list of columns.
created_byobjectThe user who created the block.
created_timestringThe timestamp when the block was created.
dividerobjectRepresents a divider block.
embedobjectContains embedded content such as videos, tweets, etc.
equationobjectRepresents an equation or mathematical formula in the block
fileobjectRepresents a file block.
has_childrenbooleanIndicates if the block has children or not.
heading_1objectRepresents a level 1 heading.
heading_2objectRepresents a level 2 heading.
heading_3objectRepresents a level 3 heading.
idstringThe unique identifier of the block.
imageobjectRepresents an image block.
last_edited_byobjectThe user who last edited the block.
last_edited_timestringThe timestamp when the block was last edited.
link_previewobjectDisplays a preview of an external link within the block
link_to_pageobjectProvides a link to another page within the block
numbered_list_itemobjectRepresents an item in a numbered list.
objectobjectRepresents an object block.
paragraphobjectRepresents a paragraph block.
parentobjectThe parent block of the current block.
pdfobjectRepresents a PDF document block.
quoteobjectRepresents a quote block.
synced_blockobjectRepresents a block synced from another source
tableobjectRepresents a table within the block
table_of_contentsobjectContains information regarding the table of contents
table_rowobjectRepresents a row in a table within the block
templateobjectSpecifies a template used within the block
to_doobjectRepresents a to-do list or task content
toggleobjectRepresents a toggle block.
typeobjectThe type of the block.
unsupportedobjectRepresents an unsupported block.
videoobjectRepresents a video block.
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].archivedbooleanIndicates if the block is archived or not.
data[].bookmarkobjectRepresents a bookmark within the block
data[].breadcrumbobjectRepresents a breadcrumb block.
data[].bulleted_list_itemobjectRepresents an item in a bulleted list.
data[].calloutobjectDescribes a callout message or content in the block
data[].child_databaseobjectRepresents a child database block.
data[].child_pageobjectRepresents a child page block.
data[].codeobjectContains code snippets or blocks in the block content
data[].columnobjectRepresents a column block.
data[].column_listobjectRepresents a list of columns.
data[].created_byobjectThe user who created the block.
data[].created_timestringThe timestamp when the block was created.
data[].dividerobjectRepresents a divider block.
data[].embedobjectContains embedded content such as videos, tweets, etc.
data[].equationobjectRepresents an equation or mathematical formula in the block
data[].fileobjectRepresents a file block.
data[].has_childrenbooleanIndicates if the block has children or not.
data[].heading_1objectRepresents a level 1 heading.
data[].heading_2objectRepresents a level 2 heading.
data[].heading_3objectRepresents a level 3 heading.
data[].idstringThe unique identifier of the block.
data[].imageobjectRepresents an image block.
data[].last_edited_byobjectThe user who last edited the block.
data[].last_edited_timestringThe timestamp when the block was last edited.
data[].link_previewobjectDisplays a preview of an external link within the block
data[].link_to_pageobjectProvides a link to another page within the block
data[].numbered_list_itemobjectRepresents an item in a numbered list.
data[].objectobjectRepresents an object block.
data[].paragraphobjectRepresents a paragraph block.
data[].parentobjectThe parent block of the current block.
data[].pdfobjectRepresents a PDF document block.
data[].quoteobjectRepresents a quote block.
data[].synced_blockobjectRepresents a block synced from another source
data[].tableobjectRepresents a table within the block
data[].table_of_contentsobjectContains information regarding the table of contents
data[].table_rowobjectRepresents a row in a table within the block
data[].templateobjectSpecifies a template used within the block
data[].to_doobjectRepresents a to-do list or task content
data[].toggleobjectRepresents a toggle block.
data[].typeobjectThe type of the block.
data[].unsupportedobjectRepresents an unsupported block.
data[].videoobjectRepresents a video block.

Comments

Comments List

Returns a list of comments for a specified block or page

Python SDK

await notion.comments.list(
block_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "comments",
"action": "list",
"params": {
"block_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
block_idstringYesBlock or page ID to retrieve comments for
start_cursorstringNoPagination cursor for next page
page_sizeintegerNoNumber of items per page (max 100)
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
parentobject | any
discussion_idstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
rich_textarray | null
rich_text[].typestring | null
rich_text[].textobject | null
rich_text[].annotationsobject | null
rich_text[].plain_textstring | null
rich_text[].hrefstring | null

Meta

Field NameTypeDescription
next_cursorstring | null
has_moreboolean | null

Comments Create

Creates a comment on a page or block, or replies to an existing discussion thread

Python SDK

await notion.comments.create(
parent={},
discussion_id="<str>",
rich_text=[]
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "comments",
"action": "create",
"params": {
"parent": {},
"discussion_id": "<str>",
"rich_text": []
}
}'

Parameters

Parameter NameTypeRequiredDescription
parentobjectNoParent of the comment. Provide exactly one of page_id or block_id. Mutually exclusive with discussion_id.
discussion_idstringNoID of an existing discussion thread to reply to. Mutually exclusive with parent.
rich_textarray<object>YesContent of the comment as rich text
rich_text.typestringNo
rich_text.textobjectNo
rich_text.text.contentstringNo
rich_text.text.linkobject | nullNo
rich_text.mentionobjectNo
rich_text.equationobjectNo
rich_text.equation.expressionstringNo
rich_text.annotationsobjectNo
rich_text.annotations.boldbooleanNo
rich_text.annotations.italicbooleanNo
rich_text.annotations.strikethroughbooleanNo
rich_text.annotations.underlinebooleanNo
rich_text.annotations.codebooleanNo
rich_text.annotations.colorstringNo
Response Schema

Records

Field NameTypeDescription
idstring
objectstring | null
parentobject | any
discussion_idstring | null
created_timestring | null
last_edited_timestring | null
created_byobject | null
rich_textarray | null
rich_text[].typestring | null
rich_text[].textobject | null
rich_text[].annotationsobject | null
rich_text[].plain_textstring | null
rich_text[].hrefstring | null

Search and filter comments records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await notion.comments.context_store_search(
query={"filter": {"eq": {"created_by": {}}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "comments",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"created_by": {}}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
created_byobjectUser who created the comment.
created_timestringDate and time when the comment was created.
discussion_idstringDiscussion thread ID.
idstringUnique identifier for the comment.
last_edited_timestringDate and time when the comment was last edited.
objectstringAlways comment.
parentobjectParent of the comment.
rich_textarrayContent of the comment as rich text.
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].created_byobjectUser who created the comment.
data[].created_timestringDate and time when the comment was created.
data[].discussion_idstringDiscussion thread ID.
data[].idstringUnique identifier for the comment.
data[].last_edited_timestringDate and time when the comment was last edited.
data[].objectstringAlways comment.
data[].parentobjectParent of the comment.
data[].rich_textarrayContent of the comment as rich text.