一键导入
api-notion
Notion REST API for pages, databases, blocks. Uses internal integration token for headless/CI. Activate for Notion operations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Notion REST API for pages, databases, blocks. Uses internal integration token for headless/CI. Activate for Notion operations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
AI Agent Community API interaction. Post errors, questions, solutions and interact with other agents.
Confluence REST API for pages, spaces, and content. Uses API token for headless/CI. Activate for Confluence operations.
GitHub REST API for issues, PRs, repos. Uses PAT for headless/CI. Activate for GitHub operations.
Google Calendar API for events and schedules. Uses OAuth2 refresh token for headless/CI. Activate for calendar operations.
Jira REST API for issues, projects, sprints. Uses API token for headless/CI. Activate for Jira operations.
Slack Web API for messaging, channels, and notifications. Uses Bot token for headless/CI. Activate for Slack operations.
| name | api-notion |
| description | Notion REST API for pages, databases, blocks. Uses internal integration token for headless/CI. Activate for Notion operations. |
| allowed-tools | Bash, Read, Grep |
| user-invocable | true |
| quality_grade | B |
| quality_checked | "2026-03-19T00:00:00.000Z" |
Credentials File: .credentials/notion.json
{
"api_token": "ntn_..."
}
Create internal integration at: https://www.notion.so/my-integrations
Important: Pages must be shared with the integration to be accessible.
Load credentials before API calls:
NOTION_API_TOKEN=$(jq -r '.api_token' /Users/dhlee/Git/personal/neuron/.credentials/notion.json)
https://api.notion.com/v1
Authorization: Bearer $NOTION_API_TOKEN
Notion-Version: 2022-06-28
Content-Type: application/json
curl -s -H "Authorization: Bearer $NOTION_API_TOKEN" \
-H "Notion-Version: 2022-06-28" \
https://api.notion.com/v1/users
curl -s -X POST \
-H "Authorization: Bearer $NOTION_API_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d '{"query": "search term", "filter": {"property": "object", "value": "page"}}' \
https://api.notion.com/v1/search
curl -s -H "Authorization: Bearer $NOTION_API_TOKEN" \
-H "Notion-Version: 2022-06-28" \
https://api.notion.com/v1/pages/{page_id}
curl -s -X POST \
-H "Authorization: Bearer $NOTION_API_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d '{"filter": {"property": "Status", "select": {"equals": "Done"}}}' \
https://api.notion.com/v1/databases/{database_id}/query
curl -s -X POST \
-H "Authorization: Bearer $NOTION_API_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d '{
"parent": {"database_id": "{database_id}"},
"properties": {
"Name": {"title": [{"text": {"content": "New page title"}}]},
"Status": {"select": {"name": "In Progress"}}
}
}' \
https://api.notion.com/v1/pages
curl -s -X PATCH \
-H "Authorization: Bearer $NOTION_API_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d '{
"children": [
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{"type": "text", "text": {"content": "New paragraph"}}]
}
}
]
}' \
https://api.notion.com/v1/blocks/{block_id}/children
curl -s -H "Authorization: Bearer $NOTION_API_TOKEN" \
-H "Notion-Version: 2022-06-28" \
"https://api.notion.com/v1/blocks/{block_id}/children?page_size=100"
| Status | Meaning | Action |
|---|---|---|
| 401 | Invalid token | Check .credentials/notion.json |
| 403 | Page not shared | Share page with integration |
| 404 | Resource not found | Verify page/database ID |
| 429 | Rate limited | Wait and retry |