This connector is optimized for AI agents. For the data replication connector, see Notion .
This is the full reference documentation for the Notion agent connector.
Supported entities and actions
The Notion connector supports the following entities and actions.
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 Name Type Required Description start_cursorstringNo Pagination cursor for next page page_sizeintegerNo Number of items per page (max 100)
Response Schema Records Field Name Type Description idstringobjectstring | nulltypestring | nullnamestring | nullavatar_urlstring | nullpersonobject | nullbotobject | nullrequest_idstring | null
Field Name Type Description next_cursorstring | nullhas_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 Name Type Required Description user_idstringYes User ID
Response Schema Records Field Name Type Description idstringobjectstring | nulltypestring | nullnamestring | nullavatar_urlstring | nullpersonobject | nullbotobject | nullrequest_idstring | null
Users Search
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 . 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": "search", "params": { "query": {"filter": {"eq": {"avatar_url": "<str>"}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description filterobjectNo filter.propertystringNo filter.valuestringNo sortobjectNo sort.directionstringNo sort.timestampstringNo start_cursorstringNo Pagination cursor page_sizeintegerNo
Response Schema Records Field Name Type Description idstringobjectstring | nullcreated_timestring | nulllast_edited_timestring | nullcreated_byobject | nulllast_edited_byobject | nullcoverobject | nulliconobject | nullparentobject | anyarchivedboolean | nullin_trashboolean | nullis_archivedboolean | nullis_lockedboolean | nullpropertiesobject | nullurlstring | nullpublic_urlstring | nullrequest_idstring | null
Field Name Type Description next_cursorstring | nullhas_moreboolean | 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 Name Type Required Description page_idstringYes Page ID
Response Schema Records Field Name Type Description idstringobjectstring | nullcreated_timestring | nulllast_edited_timestring | nullcreated_byobject | nulllast_edited_byobject | nullcoverobject | nulliconobject | nullparentobject | anyarchivedboolean | nullin_trashboolean | nullis_archivedboolean | nullis_lockedboolean | nullpropertiesobject | nullurlstring | nullpublic_urlstring | nullrequest_idstring | null
Pages Search
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 . 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": "search", "params": { "query": {"filter": {"eq": {"archived": True}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description filterobjectNo filter.propertystringNo filter.valuestringNo sortobjectNo sort.directionstringNo sort.timestampstringNo start_cursorstringNo Pagination cursor page_sizeintegerNo
Response Schema Records Field Name Type Description idstringobjectstring | nullcreated_timestring | nulllast_edited_timestring | nullcreated_byobject | nulllast_edited_byobject | nulltitlearray | nulltitle[].typestring | nulltitle[].textobject | nulltitle[].annotationsobject | nulltitle[].plain_textstring | nulltitle[].hrefstring | nulldescriptionarray | nulldescription[].typestring | nulldescription[].textobject | nulldescription[].annotationsobject | nulldescription[].plain_textstring | nulldescription[].hrefstring | nulliconobject | nullcoverobject | nullpropertiesobject | nullparentobject | anydatabase_parentobject | anyurlstring | nullpublic_urlstring | nullarchivedboolean | nullin_trashboolean | nullis_archivedboolean | nullis_inlineboolean | nullis_lockedboolean | nullrequest_idstring | null
Field Name Type Description next_cursorstring | nullhas_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 Name Type Required Description data_source_idstringYes Data Source ID
Response Schema Records Field Name Type Description idstringobjectstring | nullcreated_timestring | nulllast_edited_timestring | nullcreated_byobject | nulllast_edited_byobject | nulltitlearray | nulltitle[].typestring | nulltitle[].textobject | nulltitle[].annotationsobject | nulltitle[].plain_textstring | nulltitle[].hrefstring | nulldescriptionarray | nulldescription[].typestring | nulldescription[].textobject | nulldescription[].annotationsobject | nulldescription[].plain_textstring | nulldescription[].hrefstring | nulliconobject | nullcoverobject | nullpropertiesobject | nullparentobject | anydatabase_parentobject | anyurlstring | nullpublic_urlstring | nullarchivedboolean | nullin_trashboolean | nullis_archivedboolean | nullis_inlineboolean | nullis_lockedboolean | nullrequest_idstring | null
Data Sources Search
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 . 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": "search", "params": { "query": {"filter": {"eq": {"archived": True}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description block_idstringYes Block or page ID start_cursorstringNo Pagination cursor for next page page_sizeintegerNo Number of items per page (max 100)
Response Schema Records Field Name Type Description idstringobjectstring | nulltypestring | nullcreated_timestring | nulllast_edited_timestring | nullcreated_byobject | nulllast_edited_byobject | nullhas_childrenboolean | nullarchivedboolean | nullin_trashboolean | nullparentobject | anyparagraphobject | nullheading_1object | nullheading_2object | nullheading_3object | nullbulleted_list_itemobject | nullnumbered_list_itemobject | nullto_doobject | nulltoggleobject | nullcodeobject | nullchild_pageobject | nullchild_databaseobject | nullcalloutobject | nullquoteobject | nulldividerobject | nulltable_of_contentsobject | nullbookmarkobject | nullimageobject | nullvideoobject | nullfileobject | nullpdfobject | nullembedobject | nullequationobject | nulltableobject | nulltable_rowobject | nullcolumnobject | nullcolumn_listobject | nullsynced_blockobject | nulltemplateobject | nulllink_previewobject | nulllink_to_pageobject | nullbreadcrumbobject | nullunsupportedobject | nullrequest_idstring | null
Field Name Type Description next_cursorstring | nullhas_moreboolean | 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 Name Type Required Description block_idstringYes Block ID
Response Schema Records Field Name Type Description idstringobjectstring | nulltypestring | nullcreated_timestring | nulllast_edited_timestring | nullcreated_byobject | nulllast_edited_byobject | nullhas_childrenboolean | nullarchivedboolean | nullin_trashboolean | nullparentobject | anyparagraphobject | nullheading_1object | nullheading_2object | nullheading_3object | nullbulleted_list_itemobject | nullnumbered_list_itemobject | nullto_doobject | nulltoggleobject | nullcodeobject | nullchild_pageobject | nullchild_databaseobject | nullcalloutobject | nullquoteobject | nulldividerobject | nulltable_of_contentsobject | nullbookmarkobject | nullimageobject | nullvideoobject | nullfileobject | nullpdfobject | nullembedobject | nullequationobject | nulltableobject | nulltable_rowobject | nullcolumnobject | nullcolumn_listobject | nullsynced_blockobject | nulltemplateobject | nulllink_previewobject | nulllink_to_pageobject | nullbreadcrumbobject | nullunsupportedobject | nullrequest_idstring | null
Blocks Search
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 . 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": "search", "params": { "query": {"filter": {"eq": {"archived": True}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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.
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 Name Type Required Description block_idstringYes Block or page ID to retrieve comments for start_cursorstringNo Pagination cursor for next page page_sizeintegerNo Number of items per page (max 100)
Response Schema Records Field Name Type Description idstringobjectstring | nullparentobject | anydiscussion_idstring | nullcreated_timestring | nulllast_edited_timestring | nullcreated_byobject | nullrich_textarray | nullrich_text[].typestring | nullrich_text[].textobject | nullrich_text[].annotationsobject | nullrich_text[].plain_textstring | nullrich_text[].hrefstring | null
Field Name Type Description next_cursorstring | nullhas_moreboolean | null