Notion skill
Setup
- Create an integration at https://notion.so/my-integrations.
- Save the API key under
~/.config/notion/api_key(no newline). - Share the target pages/databases with the integration.
API basics
All requests:
Authorization: Bearer $NOTION_KEY
Notion-Version: 2025-09-03
Content-Type: application/json
Procedure
Map ${input.action} to the right endpoint:
search→POST /v1/searchpage-create→POST /v1/pagespage-update→PATCH /v1/pages/{page_id}db-query→POST /v1/data_sources/{id}/queryblock-append→PATCH /v1/blocks/{block_id}/children
Compose the JSON body from ${input.payload}. Issue with
chat_agent_apirer. Return the parsed JSON response.