capabilities.work

Search for a Page and Comment on It

A 3-step recipe with Notion. We can help you get access.

Recipe · 3 steps

Search for a Page and Comment on It

with Notion

Search for a page by title and add a comment to the first match.

  1. Search the workspace for pages whose title matches the query, filtering results to the page object type and returning a single match.
  2. Retrieve the matched page to confirm it exists and is accessible before commenting on it.
  3. Create a comment on the matched page using its ID as the comment parent.
What you'll need to have ready
  • token: Notion integration token passed as a bearer credential.
  • notionVersion: The Notion API version date sent in the Notion-Version header.
  • query: The text to search for in page titles.
  • commentText: The plain-text body of the comment to create on the matched page.
For your developer

Arazzo workflow notion:search-page-comment, 3 operations: search → retrievePage → createComment. Specs on APIs.io.