{
  "schemaVersion": "1.0",
  "item": {
    "slug": "notion-api-skill",
    "name": "Notion",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/byungkyu/notion-api-skill",
    "canonicalUrl": "https://clawhub.ai/byungkyu/notion-api-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/notion-api-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=notion-api-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/notion-api-skill"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/notion-api-skill",
    "agentPageUrl": "https://openagent3.xyz/skills/notion-api-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/notion-api-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/notion-api-skill/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Notion",
        "body": "Access the Notion API with managed OAuth authentication. Query databases, create pages, manage blocks, and search your workspace."
      },
      {
        "title": "Quick Start",
        "body": "# Search for pages\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': 'meeting notes'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/notion/v1/search', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nreq.add_header('Notion-Version', '2025-09-03')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/notion/{native-api-path}\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."
      },
      {
        "title": "Required Headers",
        "body": "All Notion API requests require the version header:\n\nNotion-Version: 2025-09-03"
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Notion OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?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"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'notion'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{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\nResponse:\n\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://connect.maton.ai/?session_token=...\",\n    \"app\": \"notion\",\n    \"method\": \"OAUTH2\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{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"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Notion connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': 'meeting notes'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/notion/v1/search', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\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\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Key Concept: Databases vs Data Sources",
        "body": "In API version 2025-09-03, databases and data sources are separate:\n\nConceptUse ForDatabaseCreating databases, getting data source IDsData SourceQuerying, updating schema, updating properties\n\nUse GET /databases/{id} to get the data_sources array, then use /data_sources/ endpoints:\n\n{\n  \"object\": \"database\",\n  \"id\": \"abc123\",\n  \"data_sources\": [\n    {\"id\": \"def456\", \"name\": \"My Database\"}\n  ]\n}"
      },
      {
        "title": "Search",
        "body": "Search for pages:\n\nPOST /notion/v1/search\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"query\": \"meeting notes\",\n  \"filter\": {\"property\": \"object\", \"value\": \"page\"}\n}\n\nSearch for data sources:\n\nPOST /notion/v1/search\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"filter\": {\"property\": \"object\", \"value\": \"data_source\"}\n}"
      },
      {
        "title": "Data Sources",
        "body": "Get Data Source\n\nGET /notion/v1/data_sources/{dataSourceId}\nNotion-Version: 2025-09-03\n\nQuery Data Source\n\nPOST /notion/v1/data_sources/{dataSourceId}/query\nContent-Type: application/json\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\nUpdate Data Source\n\nPATCH /notion/v1/data_sources/{dataSourceId}\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"title\": [{\"type\": \"text\", \"text\": {\"content\": \"Updated Title\"}}],\n  \"properties\": {\n    \"NewColumn\": {\"rich_text\": {}}\n  }\n}"
      },
      {
        "title": "Databases",
        "body": "Get Database\n\nGET /notion/v1/databases/{databaseId}\nNotion-Version: 2025-09-03\n\nCreate Database\n\nPOST /notion/v1/databases\nContent-Type: application/json\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}"
      },
      {
        "title": "Pages",
        "body": "Get Page\n\nGET /notion/v1/pages/{pageId}\nNotion-Version: 2025-09-03\n\nCreate Page\n\nPOST /notion/v1/pages\nContent-Type: application/json\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\nCreate Page in Data Source\n\nPOST /notion/v1/pages\nContent-Type: application/json\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\nUpdate Page Properties\n\nPATCH /notion/v1/pages/{pageId}\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"properties\": {\n    \"Status\": {\"select\": {\"name\": \"Done\"}}\n  }\n}\n\nUpdate Page Icon\n\nPATCH /notion/v1/pages/{pageId}\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"icon\": {\"type\": \"emoji\", \"emoji\": \"🚀\"}\n}\n\nArchive Page\n\nPATCH /notion/v1/pages/{pageId}\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"archived\": true\n}"
      },
      {
        "title": "Blocks",
        "body": "Get Block Children\n\nGET /notion/v1/blocks/{blockId}/children\nNotion-Version: 2025-09-03\n\nAppend Block Children\n\nPATCH /notion/v1/blocks/{blockId}/children\nContent-Type: application/json\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\nDelete Block\n\nDELETE /notion/v1/blocks/{blockId}\nNotion-Version: 2025-09-03"
      },
      {
        "title": "Users",
        "body": "List Users\n\nGET /notion/v1/users\nNotion-Version: 2025-09-03\n\nGet Current User\n\nGET /notion/v1/users/me\nNotion-Version: 2025-09-03"
      },
      {
        "title": "Filter Operators",
        "body": "equals, does_not_equal\ncontains, does_not_contain\nstarts_with, ends_with\nis_empty, is_not_empty\ngreater_than, less_than"
      },
      {
        "title": "Block Types",
        "body": "paragraph, heading_1, heading_2, heading_3\nbulleted_list_item, numbered_list_item\nto_do, code, quote, divider"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch('https://gateway.maton.ai/notion/v1/search', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n    'Notion-Version': '2025-09-03'\n  },\n  body: JSON.stringify({ query: 'meeting' })\n});"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/notion/v1/search',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Notion-Version': '2025-09-03'\n    },\n    json={'query': 'meeting'}\n)"
      },
      {
        "title": "Notes",
        "body": "All IDs are UUIDs (with or without hyphens)\nUse GET /databases/{id} to get the data_sources array containing data source IDs\nCreating databases requires POST /databases endpoint\nDelete blocks returns the block with archived: true\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: 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."
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Notion connection401Invalid or missing Maton API key429Rate limited (10 req/sec per account)4xx/5xxPassthrough error from Notion API"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with notion. For example:\n\nCorrect: https://gateway.maton.ai/notion/v1/search\nIncorrect: https://gateway.maton.ai/v1/search"
      },
      {
        "title": "Resources",
        "body": "Notion API Introduction\nSearch\nQuery Database\nGet Page\nCreate Page\nUpdate Page\nAppend Block Children\nFilter Reference\nLLM Reference\nMaton Community\nMaton Support"
      }
    ],
    "body": "Notion\n\nAccess the Notion API with managed OAuth authentication. Query databases, create pages, manage blocks, and search your workspace.\n\nQuick Start\n# Search for pages\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': 'meeting notes'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/notion/v1/search', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nreq.add_header('Notion-Version', '2025-09-03')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/notion/{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\nRequired Headers\n\nAll Notion API requests require the version header:\n\nNotion-Version: 2025-09-03\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Notion OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?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\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'notion'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{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\nResponse:\n\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://connect.maton.ai/?session_token=...\",\n    \"app\": \"notion\",\n    \"method\": \"OAUTH2\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{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\nSpecifying Connection\n\nIf you have multiple Notion connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': 'meeting notes'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/notion/v1/search', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\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\nKey Concept: Databases vs Data Sources\n\nIn API version 2025-09-03, databases and data sources are separate:\n\nConcept\tUse For\nDatabase\tCreating databases, getting data source IDs\nData Source\tQuerying, updating schema, updating properties\n\nUse GET /databases/{id} to get the data_sources array, then use /data_sources/ endpoints:\n\n{\n  \"object\": \"database\",\n  \"id\": \"abc123\",\n  \"data_sources\": [\n    {\"id\": \"def456\", \"name\": \"My Database\"}\n  ]\n}\n\nAPI Reference\nSearch\n\nSearch for pages:\n\nPOST /notion/v1/search\nContent-Type: application/json\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\nPOST /notion/v1/search\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"filter\": {\"property\": \"object\", \"value\": \"data_source\"}\n}\n\nData Sources\nGet Data Source\nGET /notion/v1/data_sources/{dataSourceId}\nNotion-Version: 2025-09-03\n\nQuery Data Source\nPOST /notion/v1/data_sources/{dataSourceId}/query\nContent-Type: application/json\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\nUpdate Data Source\nPATCH /notion/v1/data_sources/{dataSourceId}\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"title\": [{\"type\": \"text\", \"text\": {\"content\": \"Updated Title\"}}],\n  \"properties\": {\n    \"NewColumn\": {\"rich_text\": {}}\n  }\n}\n\nDatabases\nGet Database\nGET /notion/v1/databases/{databaseId}\nNotion-Version: 2025-09-03\n\nCreate Database\nPOST /notion/v1/databases\nContent-Type: application/json\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\nPages\nGet Page\nGET /notion/v1/pages/{pageId}\nNotion-Version: 2025-09-03\n\nCreate Page\nPOST /notion/v1/pages\nContent-Type: application/json\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\nCreate Page in Data Source\nPOST /notion/v1/pages\nContent-Type: application/json\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\nUpdate Page Properties\nPATCH /notion/v1/pages/{pageId}\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"properties\": {\n    \"Status\": {\"select\": {\"name\": \"Done\"}}\n  }\n}\n\nUpdate Page Icon\nPATCH /notion/v1/pages/{pageId}\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"icon\": {\"type\": \"emoji\", \"emoji\": \"🚀\"}\n}\n\nArchive Page\nPATCH /notion/v1/pages/{pageId}\nContent-Type: application/json\nNotion-Version: 2025-09-03\n\n{\n  \"archived\": true\n}\n\nBlocks\nGet Block Children\nGET /notion/v1/blocks/{blockId}/children\nNotion-Version: 2025-09-03\n\nAppend Block Children\nPATCH /notion/v1/blocks/{blockId}/children\nContent-Type: application/json\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\nDelete Block\nDELETE /notion/v1/blocks/{blockId}\nNotion-Version: 2025-09-03\n\nUsers\nList Users\nGET /notion/v1/users\nNotion-Version: 2025-09-03\n\nGet Current User\nGET /notion/v1/users/me\nNotion-Version: 2025-09-03\n\nFilter Operators\nequals, does_not_equal\ncontains, does_not_contain\nstarts_with, ends_with\nis_empty, is_not_empty\ngreater_than, less_than\nBlock Types\nparagraph, heading_1, heading_2, heading_3\nbulleted_list_item, numbered_list_item\nto_do, code, quote, divider\nCode Examples\nJavaScript\nconst response = await fetch('https://gateway.maton.ai/notion/v1/search', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n    'Notion-Version': '2025-09-03'\n  },\n  body: JSON.stringify({ query: 'meeting' })\n});\n\nPython\nimport os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/notion/v1/search',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Notion-Version': '2025-09-03'\n    },\n    json={'query': 'meeting'}\n)\n\nNotes\nAll IDs are UUIDs (with or without hyphens)\nUse GET /databases/{id} to get the data_sources array containing data source IDs\nCreating databases requires POST /databases endpoint\nDelete blocks returns the block with archived: true\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: 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.\nError Handling\nStatus\tMeaning\n400\tMissing Notion connection\n401\tInvalid or missing Maton API key\n429\tRate limited (10 req/sec per account)\n4xx/5xx\tPassthrough error from Notion API\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with notion. For example:\nCorrect: https://gateway.maton.ai/notion/v1/search\nIncorrect: https://gateway.maton.ai/v1/search\nResources\nNotion API Introduction\nSearch\nQuery Database\nGet Page\nCreate Page\nUpdate Page\nAppend Block Children\nFilter Reference\nLLM Reference\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/notion-api-skill",
    "publisherUrl": "https://clawhub.ai/byungkyu/notion-api-skill",
    "owner": "byungkyu",
    "version": "1.0.6",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/notion-api-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/notion-api-skill",
    "agentUrl": "https://openagent3.xyz/skills/notion-api-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/notion-api-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/notion-api-skill/agent.md"
  }
}