[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6PY67BQPS359Q2D5PPS86GH":3,"skill-same:01M6PY67BQPS359Q2D5PPS86GH":90},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":27,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6PY67BQPS359Q2D5PPS86GH","notion",null,"Notion API integration with managed OAuth. Query databases, create and update pages, manage blocks. Use this skill when users want to interact with Notion workspaces, databases, or pages. For other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F安全与密码\u002Fnotion-api-skill\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[5,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"workspaces","managed","for","apps","pages","query","maton","notion api","api integration","manage","databases","access","api","api-gateway","network","gateway","update","create","valid","2026-11-10 10:12:30",false,"---\nname: notion\ndescription: |\n  Notion API integration with managed OAuth. Query databases, create and update pages, manage blocks. Use this skill when users want to interact with Notion workspaces, databases, or pages. For other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\ncompatibility: Requires network access and valid Maton API key\nmetadata:\n  author: maton\n  version: \"1.0\"\n---\n\n# Notion\n\nAccess the Notion API with managed OAuth authentication. Query databases, create pages, manage blocks, and search your workspace.\n\n## Quick Start\n\n```bash\n# Search for pages\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': 'meeting notes'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002Fv1\u002Fsearch', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nreq.add_header('Notion-Version', '2025-09-03')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Base URL\n\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002F{native-api-path}\n```\n\nReplace `{native-api-path}` with the actual Notion API endpoint path. The gateway proxies requests to `api.notion.com` and automatically injects your OAuth token.\n\n## Required Headers\n\nAll Notion API requests require the version header:\n\n```\nNotion-Version: 2025-09-03\n```\n\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https:\u002F\u002Fmaton.ai)\n2. Go to [maton.ai\u002Fsettings](https:\u002F\u002Fmaton.ai\u002Fsettings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Notion OAuth connections at `https:\u002F\u002Fctrl.maton.ai`.\n\n### List Connections\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections?app=notion&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Create Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'notion'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Get Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n**Response:**\n```json\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https:\u002F\u002Fconnect.maton.ai\u002F?session_token=...\",\n    \"app\": \"notion\",\n    \"metadata\": {}\n  }\n}\n```\n\nOpen the returned `url` in a browser to complete OAuth authorization.\n\n### Delete Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Specifying Connection\n\nIf you have multiple Notion connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': 'meeting notes'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002Fv1\u002Fsearch', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nreq.add_header('Notion-Version', '2025-09-03')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\n## Key Concept: Databases vs Data Sources\n\nIn API version 2025-09-03, databases and data sources are separate:\n\n| Concept | Use For |\n|---------|---------|\n| **Database** | Creating databases, getting data source IDs |\n| **Data Source** | Querying, updating schema, updating properties |\n\nUse `GET \u002Fdatabases\u002F{id}` to get the `data_sources` array, then use `\u002Fdata_sources\u002F` endpoints:\n\n```json\n{\n  \"object\": \"database\",\n  \"id\": \"abc123\",\n  \"data_sources\": [\n    {\"id\": \"def456\", \"name\": \"My Database\"}\n  ]\n}\n```\n\n## API Reference\n\n### Search\n\nSearch for pages:\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fsearch\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"query\": \"meeting notes\",\n  \"filter\": {\"property\": \"object\", \"value\": \"page\"}\n}\n```\n\nSearch for data sources:\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fsearch\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"filter\": {\"property\": \"object\", \"value\": \"data_source\"}\n}\n```\n\n### Data Sources\n\n#### Get Data Source\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fdata_sources\u002F{dataSourceId}\nNotion-Version: 2025-09-03\n```\n\n#### Query Data Source\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fdata_sources\u002F{dataSourceId}\u002Fquery\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"filter\": {\n    \"property\": \"Status\",\n    \"select\": {\"equals\": \"Active\"}\n  },\n  \"sorts\": [\n    {\"property\": \"Created\", \"direction\": \"descending\"}\n  ],\n  \"page_size\": 100\n}\n```\n\n#### Update Data Source\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fdata_sources\u002F{dataSourceId}\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"title\": [{\"type\": \"text\", \"text\": {\"content\": \"Updated Title\"}}],\n  \"properties\": {\n    \"NewColumn\": {\"rich_text\": {}}\n  }\n}\n```\n\n### Databases\n\n#### Get Database\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fdatabases\u002F{databaseId}\nNotion-Version: 2025-09-03\n```\n\n#### Create Database\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fdatabases\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"parent\": {\"type\": \"page_id\", \"page_id\": \"PARENT_PAGE_ID\"},\n  \"title\": [{\"type\": \"text\", \"text\": {\"content\": \"New Database\"}}],\n  \"properties\": {\n    \"Name\": {\"title\": {}},\n    \"Status\": {\"select\": {\"options\": [{\"name\": \"Active\"}, {\"name\": \"Done\"}]}}\n  }\n}\n```\n\n### Pages\n\n#### Get Page\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fpages\u002F{pageId}\nNotion-Version: 2025-09-03\n```\n\n#### Create Page\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fpages\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"parent\": {\"page_id\": \"PARENT_PAGE_ID\"},\n  \"properties\": {\n    \"title\": {\"title\": [{\"text\": {\"content\": \"New Page\"}}]}\n  }\n}\n```\n\n#### Create Page in Data Source\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fpages\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"parent\": {\"data_source_id\": \"DATA_SOURCE_ID\"},\n  \"properties\": {\n    \"Name\": {\"title\": [{\"text\": {\"content\": \"New Page\"}}]},\n    \"Status\": {\"select\": {\"name\": \"Active\"}}\n  }\n}\n```\n\n#### Update Page Properties\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fpages\u002F{pageId}\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"properties\": {\n    \"Status\": {\"select\": {\"name\": \"Done\"}}\n  }\n}\n```\n\n#### Update Page Icon\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fpages\u002F{pageId}\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"icon\": {\"type\": \"emoji\", \"emoji\": \"?\"}\n}\n```\n\n#### Archive Page\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fpages\u002F{pageId}\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"archived\": true\n}\n```\n\n### Blocks\n\n#### Get Block Children\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fblocks\u002F{blockId}\u002Fchildren\nNotion-Version: 2025-09-03\n```\n\n#### Append Block Children\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fblocks\u002F{blockId}\u002Fchildren\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"children\": [\n    {\n      \"object\": \"block\",\n      \"type\": \"paragraph\",\n      \"paragraph\": {\n        \"rich_text\": [{\"type\": \"text\", \"text\": {\"content\": \"New paragraph\"}}]\n      }\n    }\n  ]\n}\n```\n\n#### Delete Block\n\n```bash\nDELETE \u002Fnotion\u002Fv1\u002Fblocks\u002F{blockId}\nNotion-Version: 2025-09-03\n```\n\n### Users\n\n#### List Users\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fusers\nNotion-Version: 2025-09-03\n```\n\n#### Get Current User\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fusers\u002Fme\nNotion-Version: 2025-09-03\n```\n\n## Filter Operators\n\n- `equals`, `does_not_equal`\n- `contains`, `does_not_contain`\n- `starts_with`, `ends_with`\n- `is_empty`, `is_not_empty`\n- `greater_than`, `less_than`\n\n## Block Types\n\n- `paragraph`, `heading_1`, `heading_2`, `heading_3`\n- `bulleted_list_item`, `numbered_list_item`\n- `to_do`, `code`, `quote`, `divider`\n\n## Code Examples\n\n### JavaScript\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002Fv1\u002Fsearch', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application\u002Fjson',\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n    'Notion-Version': '2025-09-03'\n  },\n  body: JSON.stringify({ query: 'meeting' })\n});\n```\n\n### Python\n\n```python\nimport os\nimport requests\n\nresponse = requests.post(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002Fv1\u002Fsearch',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Notion-Version': '2025-09-03'\n    },\n    json={'query': 'meeting'}\n)\n```\n\n## Notes\n\n- All IDs are UUIDs (with or without hyphens)\n- Use `GET \u002Fdatabases\u002F{id}` to get the `data_sources` array containing data source IDs\n- Creating databases requires `POST \u002Fdatabases` endpoint\n- Delete blocks returns the block with `archived: true`\n- IMPORTANT: When using curl commands, use `curl -g` when URLs contain brackets (`fields[]`, `sort[]`, `records[]`) to disable glob parsing\n- IMPORTANT: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping.\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Missing Notion connection |\n| 401 | Invalid or missing Maton API key |\n| 429 | Rate limited (10 req\u002Fsec per account) |\n| 4xx\u002F5xx | Passthrough error from Notion API |\n\n### Troubleshooting: Invalid API Key\n\n**When you receive a \"Invalid API key\" error, ALWAYS follow these steps before concluding there is an issue:**\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Resources\n\n- [Notion API Introduction](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fintro)\n- [Search](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpost-search.md)\n- [Query Database](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpost-database-query.md)\n- [Get Page](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fretrieve-a-page.md)\n- [Create Page](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpost-page.md)\n- [Update Page](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpatch-page.md)\n- [Append Block Children](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpatch-block-children.md)\n- [Filter Reference](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpost-database-query-filter.md)\n- [LLM Reference](https:\u002F\u002Fdevelopers.notion.com\u002Fllms.txt)\n","# Notion\n\nAccess the Notion API with managed OAuth authentication. Query databases, create pages, manage blocks, and search your workspace.\n\n## Quick Start\n\n```bash\n# Search for pages\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': 'meeting notes'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002Fv1\u002Fsearch', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nreq.add_header('Notion-Version', '2025-09-03')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Base URL\n\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002F{native-api-path}\n```\n\nReplace `{native-api-path}` with the actual Notion API endpoint path. The gateway proxies requests to `api.notion.com` and automatically injects your OAuth token.\n\n## Required Headers\n\nAll Notion API requests require the version header:\n\n```\nNotion-Version: 2025-09-03\n```\n\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https:\u002F\u002Fmaton.ai)\n2. Go to [maton.ai\u002Fsettings](https:\u002F\u002Fmaton.ai\u002Fsettings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Notion OAuth connections at `https:\u002F\u002Fctrl.maton.ai`.\n\n### List Connections\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections?app=notion&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Create Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'notion'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Get Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n**Response:**\n```json\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https:\u002F\u002Fconnect.maton.ai\u002F?session_token=...\",\n    \"app\": \"notion\",\n    \"metadata\": {}\n  }\n}\n```\n\nOpen the returned `url` in a browser to complete OAuth authorization.\n\n### Delete Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Specifying Connection\n\nIf you have multiple Notion connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': 'meeting notes'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002Fv1\u002Fsearch', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nreq.add_header('Notion-Version', '2025-09-03')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\n## Key Concept: Databases vs Data Sources\n\nIn API version 2025-09-03, databases and data sources are separate:\n\n| Concept | Use For |\n|---------|---------|\n| **Database** | Creating databases, getting data source IDs |\n| **Data Source** | Querying, updating schema, updating properties |\n\nUse `GET \u002Fdatabases\u002F{id}` to get the `data_sources` array, then use `\u002Fdata_sources\u002F` endpoints:\n\n```json\n{\n  \"object\": \"database\",\n  \"id\": \"abc123\",\n  \"data_sources\": [\n    {\"id\": \"def456\", \"name\": \"My Database\"}\n  ]\n}\n```\n\n## API Reference\n\n### Search\n\nSearch for pages:\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fsearch\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"query\": \"meeting notes\",\n  \"filter\": {\"property\": \"object\", \"value\": \"page\"}\n}\n```\n\nSearch for data sources:\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fsearch\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"filter\": {\"property\": \"object\", \"value\": \"data_source\"}\n}\n```\n\n### Data Sources\n\n#### Get Data Source\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fdata_sources\u002F{dataSourceId}\nNotion-Version: 2025-09-03\n```\n\n#### Query Data Source\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fdata_sources\u002F{dataSourceId}\u002Fquery\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"filter\": {\n    \"property\": \"Status\",\n    \"select\": {\"equals\": \"Active\"}\n  },\n  \"sorts\": [\n    {\"property\": \"Created\", \"direction\": \"descending\"}\n  ],\n  \"page_size\": 100\n}\n```\n\n#### Update Data Source\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fdata_sources\u002F{dataSourceId}\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"title\": [{\"type\": \"text\", \"text\": {\"content\": \"Updated Title\"}}],\n  \"properties\": {\n    \"NewColumn\": {\"rich_text\": {}}\n  }\n}\n```\n\n### Databases\n\n#### Get Database\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fdatabases\u002F{databaseId}\nNotion-Version: 2025-09-03\n```\n\n#### Create Database\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fdatabases\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"parent\": {\"type\": \"page_id\", \"page_id\": \"PARENT_PAGE_ID\"},\n  \"title\": [{\"type\": \"text\", \"text\": {\"content\": \"New Database\"}}],\n  \"properties\": {\n    \"Name\": {\"title\": {}},\n    \"Status\": {\"select\": {\"options\": [{\"name\": \"Active\"}, {\"name\": \"Done\"}]}}\n  }\n}\n```\n\n### Pages\n\n#### Get Page\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fpages\u002F{pageId}\nNotion-Version: 2025-09-03\n```\n\n#### Create Page\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fpages\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"parent\": {\"page_id\": \"PARENT_PAGE_ID\"},\n  \"properties\": {\n    \"title\": {\"title\": [{\"text\": {\"content\": \"New Page\"}}]}\n  }\n}\n```\n\n#### Create Page in Data Source\n\n```bash\nPOST \u002Fnotion\u002Fv1\u002Fpages\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"parent\": {\"data_source_id\": \"DATA_SOURCE_ID\"},\n  \"properties\": {\n    \"Name\": {\"title\": [{\"text\": {\"content\": \"New Page\"}}]},\n    \"Status\": {\"select\": {\"name\": \"Active\"}}\n  }\n}\n```\n\n#### Update Page Properties\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fpages\u002F{pageId}\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"properties\": {\n    \"Status\": {\"select\": {\"name\": \"Done\"}}\n  }\n}\n```\n\n#### Update Page Icon\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fpages\u002F{pageId}\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"icon\": {\"type\": \"emoji\", \"emoji\": \"?\"}\n}\n```\n\n#### Archive Page\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fpages\u002F{pageId}\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"archived\": true\n}\n```\n\n### Blocks\n\n#### Get Block Children\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fblocks\u002F{blockId}\u002Fchildren\nNotion-Version: 2025-09-03\n```\n\n#### Append Block Children\n\n```bash\nPATCH \u002Fnotion\u002Fv1\u002Fblocks\u002F{blockId}\u002Fchildren\nContent-Type: application\u002Fjson\nNotion-Version: 2025-09-03\n\n{\n  \"children\": [\n    {\n      \"object\": \"block\",\n      \"type\": \"paragraph\",\n      \"paragraph\": {\n        \"rich_text\": [{\"type\": \"text\", \"text\": {\"content\": \"New paragraph\"}}]\n      }\n    }\n  ]\n}\n```\n\n#### Delete Block\n\n```bash\nDELETE \u002Fnotion\u002Fv1\u002Fblocks\u002F{blockId}\nNotion-Version: 2025-09-03\n```\n\n### Users\n\n#### List Users\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fusers\nNotion-Version: 2025-09-03\n```\n\n#### Get Current User\n\n```bash\nGET \u002Fnotion\u002Fv1\u002Fusers\u002Fme\nNotion-Version: 2025-09-03\n```\n\n## Filter Operators\n\n- `equals`, `does_not_equal`\n- `contains`, `does_not_contain`\n- `starts_with`, `ends_with`\n- `is_empty`, `is_not_empty`\n- `greater_than`, `less_than`\n\n## Block Types\n\n- `paragraph`, `heading_1`, `heading_2`, `heading_3`\n- `bulleted_list_item`, `numbered_list_item`\n- `to_do`, `code`, `quote`, `divider`\n\n## Code Examples\n\n### JavaScript\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002Fv1\u002Fsearch', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application\u002Fjson',\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n    'Notion-Version': '2025-09-03'\n  },\n  body: JSON.stringify({ query: 'meeting' })\n});\n```\n\n### Python\n\n```python\nimport os\nimport requests\n\nresponse = requests.post(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fnotion\u002Fv1\u002Fsearch',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Notion-Version': '2025-09-03'\n    },\n    json={'query': 'meeting'}\n)\n```\n\n## Notes\n\n- All IDs are UUIDs (with or without hyphens)\n- Use `GET \u002Fdatabases\u002F{id}` to get the `data_sources` array containing data source IDs\n- Creating databases requires `POST \u002Fdatabases` endpoint\n- Delete blocks returns the block with `archived: true`\n- IMPORTANT: When using curl commands, use `curl -g` when URLs contain brackets (`fields[]`, `sort[]`, `records[]`) to disable glob parsing\n- IMPORTANT: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping.\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Missing Notion connection |\n| 401 | Invalid or missing Maton API key |\n| 429 | Rate limited (10 req\u002Fsec per account) |\n| 4xx\u002F5xx | Passthrough error from Notion API |\n\n### Troubleshooting: Invalid API Key\n\n**When you receive a \"Invalid API key\" error, ALWAYS follow these steps before concluding there is an issue:**\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Resources\n\n- [Notion API Introduction](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fintro)\n- [Search](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpost-search.md)\n- [Query Database](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpost-database-query.md)\n- [Get Page](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fretrieve-a-page.md)\n- [Create Page](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpost-page.md)\n- [Update Page](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpatch-page.md)\n- [Append Block Children](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpatch-block-children.md)\n- [Filter Reference](https:\u002F\u002Fdevelopers.notion.com\u002Freference\u002Fpost-database-query-filter.md)\n- [LLM Reference](https:\u002F\u002Fdevelopers.notion.com\u002Fllms.txt)\n",{"name":5,"metadata":52,"description":54,"compatibility":55},{"author":34,"version":53},"1.0","Notion API integration with managed OAuth. Query databases, create and update pages, manage blocks. Use this skill when users want to interact with Notion workspaces, databases, or pages. For other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\n","Requires network access and valid Maton API key","main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","安全与密码\u002Fnotion-api-skill",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill notion",{"tool":70,"command":71},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill notion",{"tool":73,"command":74},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill notion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F安全与密码\u002Fnotion-api-skill\u002FSKILL.md",true,[78,84],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"_meta.json","REFERENCE","参考文档",630,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F安全与密码\u002Fnotion-api-skill\u002F_meta.json",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"LICENSE.txt","LICENSE","许可证",1072,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F安全与密码\u002Fnotion-api-skill\u002FLICENSE.txt",[91,115,141,152,162,191],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":47},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[93,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114],"safe","ethereum","defi","Optimization","user","use","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":116,"name":117,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":125,"publishedAt":47},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[120,121,124],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":122,"categoryName":123,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[40,126,127,128,129,130,131,100,132,104,133,134,135,136,33,137,138,139,140],"zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","across","positions","token","prices",{"skillNo":142,"name":143,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":149,"publishedAt":47},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[146,147,148],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":122,"categoryName":123,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[40,150,151,126,127,128,129,130,131,100,132,104,134,135,136,33,137,138,139,140],"api skill","zerion api skill",{"skillNo":153,"name":154,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":160,"publishedAt":47},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[157,158,159],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":122,"categoryName":123,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[128,40,161,126,127,129,130,100,132,104,133,134,135,136,33,137,138,139,140],"zerion api mcp",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":171,"publishedAt":47},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[168],{"categoryNo":169,"categoryName":170,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000040","财务",[172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,30],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data",{"skillNo":192,"name":193,"nameZh":6,"description":194,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":195,"categories":196,"keywords":198,"publishedAt":47},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[197],{"categoryNo":169,"categoryName":170,"taxonomyType":25,"taxonomyTypeDesc":26},[172,173,175,199,200,201,202,203,204,183,205,206,207,208,209,210,211,212,140,190],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]