--- name: notion description: Search, create, update, and organize Notion pages, databases, notes, and trackers through the Notion API. user-invocable: true metadata: hybridclaw: category: memory short_description: "Notion pages and databases." tags: - notion - workspace - docs - database - office related_skills: - project-manager - trello --- # Notion Workspace Operations Use the Notion API for page, block, and data-source work. ## Setup If `NOTION_API_KEY` is not already configured: 1. Create an internal integration in Notion. 2. Save the token outside the repo, usually as `NOTION_API_KEY`. 3. Share the target pages or databases with that integration. Do not assume the integration can see a page until the user confirms sharing. ## API Basics Before API calls, write a private temp curl config and register cleanup so the Notion token stays off the shell command line and the auth file is removed on exit: ```bash AUTH_CURL="$(mktemp)" chmod 600 "$AUTH_CURL" trap 'rm -f "$AUTH_CURL"' EXIT INT TERM cat >"$AUTH_CURL" <