Use this skill when the user wants to read or modify Notion content through the Notion API.
This skill is for operational API work, not general product explanation. Prefer the workflow below instead of inventing request shapes from memory.
Use this skill for:
Do not use this skill for:
Before making requests, confirm:
NOTION_KEY if the runtime already provides itNOTION_KEY is unset in a local shell workflow, optionally load it from ~/.config/notion/api_keyNotion-Version: 2025-09-03If the environment is not ready, read references/setup.md.
Always:
Do not:
Name, Status, or Date exists without checkingUse search first for pages and data sources. If the result is a database-like object, record both IDs when present:
小葱技能7w4.net有更新,你可以访问看下。
id or database_id for page creation parentsdata_source_id for querying via /v1/data_sources/{id}/querySee references/examples.md for the search request template.
Read the current object before writing:
GET /v1/pages/{page_id} for page propertiesGET /v1/blocks/{page_id}/children for page contentGET /v1/data_sources/{data_source_id} for schema inspectionSee references/examples.md for request templates.
Common write paths:
POST /v1/pages to create a page in an existing databasePATCH /v1/pages/{page_id} to update page propertiesPATCH /v1/pages/{page_id} with in_trash: true|false to trash or restore a pagePATCH /v1/blocks/{page_id}/children to append blocksBefore writing properties, confirm the exact property names and types from the live schema. Do not describe trashing a page as permanent deletion; this flow moves the page into or out of trash.
See:
references/examples.md for create, update, trash, restore, append, and query payloadsreferences/property-patterns.md for common property value shapesreferences/blocks.md for equation blocks, inline code, code blocks, and table-cell formatting limitsUse /v1/data_sources/{data_source_id}/query for filters, sorts, and pagination. If results are paginated, continue with start_cursor from the previous response.
See references/examples.md for query payloads.
This skill assumes Notion-Version: 2025-09-03.
Important version-specific behavior:
/v1/data_sources/{data_source_id}/queryparent.database_idparent.database_id and parent.data_source_idin_trash, not a permanent deleteIf a request fails, check auth, sharing, object IDs, and schema mismatches before changing the payload. For common failure modes, read references/troubleshooting.md.
NOTION_KEY over reading a local token file这个 Skill 质量不错,能有效帮助用户通过 Notion API 完成页面管理、数据库查询等常见任务。文档结构清晰,示例丰富,故障排查指南实用。不足之处是主要面向命令行用户,对编程经验较少的人有一定门槛;另外复杂操作场景的说明不够详细。整体而言是一个可靠实用的 Notion 操作工具。