{
  "schemaVersion": "1.0",
  "item": {
    "slug": "netlify-api",
    "name": "Netlify",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/netlify-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/netlify-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/netlify-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=netlify-api",
    "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-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.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/netlify-api"
    },
    "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/netlify-api",
    "agentPageUrl": "https://openagent3.xyz/skills/netlify-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/netlify-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/netlify-api/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": "Netlify",
        "body": "Access the Netlify API with managed OAuth authentication. Manage sites, deploys, builds, DNS zones, environment variables, and webhooks."
      },
      {
        "title": "Quick Start",
        "body": "# List all sites\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/netlify/api/v1/sites')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/netlify/{native-api-path}\n\nReplace {native-api-path} with the actual Netlify API endpoint path. The gateway proxies requests to api.netlify.com and automatically injects your OAuth token."
      },
      {
        "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 Netlify 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=netlify&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': 'netlify'}).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\": \"9e674cd3-2280-4eb4-9ff7-b12ec8ca3f55\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-12T11:15:33.183756Z\",\n    \"last_updated_time\": \"2026-02-12T11:15:51.556556Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"netlify\",\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 Netlify connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/netlify/api/v1/sites')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '9e674cd3-2280-4eb4-9ff7-b12ec8ca3f55')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "User & Accounts",
        "body": "Get Current User\n\nGET /netlify/api/v1/user\n\nList Accounts\n\nGET /netlify/api/v1/accounts\n\nGet Account\n\nGET /netlify/api/v1/accounts/{account_id}"
      },
      {
        "title": "Sites",
        "body": "List Sites\n\nGET /netlify/api/v1/sites\n\nWith filtering:\n\nGET /netlify/api/v1/sites?filter=all&page=1&per_page=100\n\nGet Site\n\nGET /netlify/api/v1/sites/{site_id}\n\nCreate Site\n\nPOST /netlify/api/v1/{account_slug}/sites\nContent-Type: application/json\n\n{\n  \"name\": \"my-new-site\"\n}\n\nUpdate Site\n\nPUT /netlify/api/v1/sites/{site_id}\nContent-Type: application/json\n\n{\n  \"name\": \"updated-site-name\"\n}\n\nDelete Site\n\nDELETE /netlify/api/v1/sites/{site_id}"
      },
      {
        "title": "Deploys",
        "body": "List Deploys\n\nGET /netlify/api/v1/sites/{site_id}/deploys\n\nGet Deploy\n\nGET /netlify/api/v1/deploys/{deploy_id}\n\nCreate Deploy\n\nPOST /netlify/api/v1/sites/{site_id}/deploys\nContent-Type: application/json\n\n{\n  \"title\": \"Deploy from API\"\n}\n\nLock Deploy\n\nPOST /netlify/api/v1/deploys/{deploy_id}/lock\n\nUnlock Deploy\n\nPOST /netlify/api/v1/deploys/{deploy_id}/unlock\n\nRestore Deploy (Rollback)\n\nPUT /netlify/api/v1/deploys/{deploy_id}"
      },
      {
        "title": "Builds",
        "body": "List Builds\n\nGET /netlify/api/v1/sites/{site_id}/builds\n\nGet Build\n\nGET /netlify/api/v1/builds/{build_id}\n\nTrigger Build\n\nPOST /netlify/api/v1/sites/{site_id}/builds"
      },
      {
        "title": "Environment Variables",
        "body": "Environment variables are managed at the account level with optional site scope.\n\nList Environment Variables\n\nGET /netlify/api/v1/accounts/{account_id}/env?site_id={site_id}\n\nCreate Environment Variables\n\nPOST /netlify/api/v1/accounts/{account_id}/env?site_id={site_id}\nContent-Type: application/json\n\n[\n  {\n    \"key\": \"MY_VAR\",\n    \"values\": [\n      {\"value\": \"my_value\", \"context\": \"all\"}\n    ]\n  }\n]\n\nContext values: all, production, deploy-preview, branch-deploy, dev\n\nUpdate Environment Variable\n\nPUT /netlify/api/v1/accounts/{account_id}/env/{key}?site_id={site_id}\nContent-Type: application/json\n\n{\n  \"key\": \"MY_VAR\",\n  \"values\": [\n    {\"value\": \"updated_value\", \"context\": \"all\"}\n  ]\n}\n\nDelete Environment Variable\n\nDELETE /netlify/api/v1/accounts/{account_id}/env/{key}?site_id={site_id}"
      },
      {
        "title": "DNS Zones",
        "body": "List DNS Zones\n\nGET /netlify/api/v1/dns_zones\n\nCreate DNS Zone\n\nPOST /netlify/api/v1/dns_zones\nContent-Type: application/json\n\n{\n  \"name\": \"example.com\",\n  \"account_slug\": \"my-account\"\n}\n\nGet DNS Zone\n\nGET /netlify/api/v1/dns_zones/{zone_id}\n\nDelete DNS Zone\n\nDELETE /netlify/api/v1/dns_zones/{zone_id}"
      },
      {
        "title": "DNS Records",
        "body": "List DNS Records\n\nGET /netlify/api/v1/dns_zones/{zone_id}/dns_records\n\nCreate DNS Record\n\nPOST /netlify/api/v1/dns_zones/{zone_id}/dns_records\nContent-Type: application/json\n\n{\n  \"type\": \"A\",\n  \"hostname\": \"www\",\n  \"value\": \"192.0.2.1\",\n  \"ttl\": 3600\n}\n\nDelete DNS Record\n\nDELETE /netlify/api/v1/dns_zones/{zone_id}/dns_records/{record_id}"
      },
      {
        "title": "Build Hooks",
        "body": "List Build Hooks\n\nGET /netlify/api/v1/sites/{site_id}/build_hooks\n\nCreate Build Hook\n\nPOST /netlify/api/v1/sites/{site_id}/build_hooks\nContent-Type: application/json\n\n{\n  \"title\": \"My Build Hook\",\n  \"branch\": \"main\"\n}\n\nResponse includes a url that can be POSTed to trigger a build.\n\nDelete Build Hook\n\nDELETE /netlify/api/v1/hooks/{hook_id}"
      },
      {
        "title": "Webhooks",
        "body": "List Webhooks\n\nGET /netlify/api/v1/hooks?site_id={site_id}\n\nCreate Webhook\n\nPOST /netlify/api/v1/hooks?site_id={site_id}\nContent-Type: application/json\n\n{\n  \"type\": \"url\",\n  \"event\": \"deploy_created\",\n  \"data\": {\n    \"url\": \"https://example.com/webhook\"\n  }\n}\n\nEvents: deploy_created, deploy_building, deploy_failed, deploy_succeeded, form_submission\n\nDelete Webhook\n\nDELETE /netlify/api/v1/hooks/{hook_id}"
      },
      {
        "title": "Forms",
        "body": "List Forms\n\nGET /netlify/api/v1/sites/{site_id}/forms\n\nList Form Submissions\n\nGET /netlify/api/v1/sites/{site_id}/submissions\n\nDelete Form\n\nDELETE /netlify/api/v1/sites/{site_id}/forms/{form_id}"
      },
      {
        "title": "Functions",
        "body": "List Functions\n\nGET /netlify/api/v1/sites/{site_id}/functions"
      },
      {
        "title": "Services/Add-ons",
        "body": "List Available Services\n\nGET /netlify/api/v1/services\n\nGet Service Details\n\nGET /netlify/api/v1/services/{service_id}"
      },
      {
        "title": "Pagination",
        "body": "Use page and per_page query parameters:\n\nGET /netlify/api/v1/sites?page=1&per_page=100\n\nDefault per_page varies by endpoint. Check response headers for pagination info."
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/netlify/api/v1/sites',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst sites = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/netlify/api/v1/sites',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\nsites = response.json()"
      },
      {
        "title": "Create Site and Set Environment Variable",
        "body": "import os\nimport requests\n\nheaders = {'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n\n# Create site\nsite = requests.post(\n    'https://gateway.maton.ai/netlify/api/v1/my-account/sites',\n    headers=headers,\n    json={'name': 'my-new-site'}\n).json()\n\n# Add environment variable\nrequests.post(\n    f'https://gateway.maton.ai/netlify/api/v1/accounts/{site[\"account_id\"]}/env',\n    headers=headers,\n    params={'site_id': site['id']},\n    json=[{'key': 'API_KEY', 'values': [{'value': 'secret', 'context': 'all'}]}]\n)"
      },
      {
        "title": "Notes",
        "body": "Site IDs are UUIDs (e.g., d37d1ce4-5444-40f5-a4ca-a2c40a8b6835)\nAccount slugs are used for creating sites within a team (e.g., my-team-slug)\nDeploy IDs are returned when creating deploys and can be used to track deploy status\nBuild hooks return a URL that can be POSTed to externally trigger builds\nEnvironment variable contexts control where variables are available: all, production, deploy-preview, branch-deploy, dev\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets 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"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Netlify connection401Invalid or missing Maton API key404Resource not found429Rate limited4xx/5xxPassthrough error from Netlify 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 netlify. For example:\n\nCorrect: https://gateway.maton.ai/netlify/api/v1/sites\nIncorrect: https://gateway.maton.ai/api/v1/sites"
      },
      {
        "title": "Resources",
        "body": "Netlify API Documentation\nNetlify CLI\nNetlify Build Hooks\nMaton Community\nMaton Support"
      }
    ],
    "body": "Netlify\n\nAccess the Netlify API with managed OAuth authentication. Manage sites, deploys, builds, DNS zones, environment variables, and webhooks.\n\nQuick Start\n# List all sites\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/netlify/api/v1/sites')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/netlify/{native-api-path}\n\n\nReplace {native-api-path} with the actual Netlify API endpoint path. The gateway proxies requests to api.netlify.com and automatically injects your OAuth token.\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 Netlify 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=netlify&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': 'netlify'}).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\": \"9e674cd3-2280-4eb4-9ff7-b12ec8ca3f55\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-12T11:15:33.183756Z\",\n    \"last_updated_time\": \"2026-02-12T11:15:51.556556Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"netlify\",\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 Netlify connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/netlify/api/v1/sites')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '9e674cd3-2280-4eb4-9ff7-b12ec8ca3f55')\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\nAPI Reference\nUser & Accounts\nGet Current User\nGET /netlify/api/v1/user\n\nList Accounts\nGET /netlify/api/v1/accounts\n\nGet Account\nGET /netlify/api/v1/accounts/{account_id}\n\nSites\nList Sites\nGET /netlify/api/v1/sites\n\n\nWith filtering:\n\nGET /netlify/api/v1/sites?filter=all&page=1&per_page=100\n\nGet Site\nGET /netlify/api/v1/sites/{site_id}\n\nCreate Site\nPOST /netlify/api/v1/{account_slug}/sites\nContent-Type: application/json\n\n{\n  \"name\": \"my-new-site\"\n}\n\nUpdate Site\nPUT /netlify/api/v1/sites/{site_id}\nContent-Type: application/json\n\n{\n  \"name\": \"updated-site-name\"\n}\n\nDelete Site\nDELETE /netlify/api/v1/sites/{site_id}\n\nDeploys\nList Deploys\nGET /netlify/api/v1/sites/{site_id}/deploys\n\nGet Deploy\nGET /netlify/api/v1/deploys/{deploy_id}\n\nCreate Deploy\nPOST /netlify/api/v1/sites/{site_id}/deploys\nContent-Type: application/json\n\n{\n  \"title\": \"Deploy from API\"\n}\n\nLock Deploy\nPOST /netlify/api/v1/deploys/{deploy_id}/lock\n\nUnlock Deploy\nPOST /netlify/api/v1/deploys/{deploy_id}/unlock\n\nRestore Deploy (Rollback)\nPUT /netlify/api/v1/deploys/{deploy_id}\n\nBuilds\nList Builds\nGET /netlify/api/v1/sites/{site_id}/builds\n\nGet Build\nGET /netlify/api/v1/builds/{build_id}\n\nTrigger Build\nPOST /netlify/api/v1/sites/{site_id}/builds\n\nEnvironment Variables\n\nEnvironment variables are managed at the account level with optional site scope.\n\nList Environment Variables\nGET /netlify/api/v1/accounts/{account_id}/env?site_id={site_id}\n\nCreate Environment Variables\nPOST /netlify/api/v1/accounts/{account_id}/env?site_id={site_id}\nContent-Type: application/json\n\n[\n  {\n    \"key\": \"MY_VAR\",\n    \"values\": [\n      {\"value\": \"my_value\", \"context\": \"all\"}\n    ]\n  }\n]\n\n\nContext values: all, production, deploy-preview, branch-deploy, dev\n\nUpdate Environment Variable\nPUT /netlify/api/v1/accounts/{account_id}/env/{key}?site_id={site_id}\nContent-Type: application/json\n\n{\n  \"key\": \"MY_VAR\",\n  \"values\": [\n    {\"value\": \"updated_value\", \"context\": \"all\"}\n  ]\n}\n\nDelete Environment Variable\nDELETE /netlify/api/v1/accounts/{account_id}/env/{key}?site_id={site_id}\n\nDNS Zones\nList DNS Zones\nGET /netlify/api/v1/dns_zones\n\nCreate DNS Zone\nPOST /netlify/api/v1/dns_zones\nContent-Type: application/json\n\n{\n  \"name\": \"example.com\",\n  \"account_slug\": \"my-account\"\n}\n\nGet DNS Zone\nGET /netlify/api/v1/dns_zones/{zone_id}\n\nDelete DNS Zone\nDELETE /netlify/api/v1/dns_zones/{zone_id}\n\nDNS Records\nList DNS Records\nGET /netlify/api/v1/dns_zones/{zone_id}/dns_records\n\nCreate DNS Record\nPOST /netlify/api/v1/dns_zones/{zone_id}/dns_records\nContent-Type: application/json\n\n{\n  \"type\": \"A\",\n  \"hostname\": \"www\",\n  \"value\": \"192.0.2.1\",\n  \"ttl\": 3600\n}\n\nDelete DNS Record\nDELETE /netlify/api/v1/dns_zones/{zone_id}/dns_records/{record_id}\n\nBuild Hooks\nList Build Hooks\nGET /netlify/api/v1/sites/{site_id}/build_hooks\n\nCreate Build Hook\nPOST /netlify/api/v1/sites/{site_id}/build_hooks\nContent-Type: application/json\n\n{\n  \"title\": \"My Build Hook\",\n  \"branch\": \"main\"\n}\n\n\nResponse includes a url that can be POSTed to trigger a build.\n\nDelete Build Hook\nDELETE /netlify/api/v1/hooks/{hook_id}\n\nWebhooks\nList Webhooks\nGET /netlify/api/v1/hooks?site_id={site_id}\n\nCreate Webhook\nPOST /netlify/api/v1/hooks?site_id={site_id}\nContent-Type: application/json\n\n{\n  \"type\": \"url\",\n  \"event\": \"deploy_created\",\n  \"data\": {\n    \"url\": \"https://example.com/webhook\"\n  }\n}\n\n\nEvents: deploy_created, deploy_building, deploy_failed, deploy_succeeded, form_submission\n\nDelete Webhook\nDELETE /netlify/api/v1/hooks/{hook_id}\n\nForms\nList Forms\nGET /netlify/api/v1/sites/{site_id}/forms\n\nList Form Submissions\nGET /netlify/api/v1/sites/{site_id}/submissions\n\nDelete Form\nDELETE /netlify/api/v1/sites/{site_id}/forms/{form_id}\n\nFunctions\nList Functions\nGET /netlify/api/v1/sites/{site_id}/functions\n\nServices/Add-ons\nList Available Services\nGET /netlify/api/v1/services\n\nGet Service Details\nGET /netlify/api/v1/services/{service_id}\n\nPagination\n\nUse page and per_page query parameters:\n\nGET /netlify/api/v1/sites?page=1&per_page=100\n\n\nDefault per_page varies by endpoint. Check response headers for pagination info.\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/netlify/api/v1/sites',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst sites = await response.json();\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/netlify/api/v1/sites',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\nsites = response.json()\n\nCreate Site and Set Environment Variable\nimport os\nimport requests\n\nheaders = {'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n\n# Create site\nsite = requests.post(\n    'https://gateway.maton.ai/netlify/api/v1/my-account/sites',\n    headers=headers,\n    json={'name': 'my-new-site'}\n).json()\n\n# Add environment variable\nrequests.post(\n    f'https://gateway.maton.ai/netlify/api/v1/accounts/{site[\"account_id\"]}/env',\n    headers=headers,\n    params={'site_id': site['id']},\n    json=[{'key': 'API_KEY', 'values': [{'value': 'secret', 'context': 'all'}]}]\n)\n\nNotes\nSite IDs are UUIDs (e.g., d37d1ce4-5444-40f5-a4ca-a2c40a8b6835)\nAccount slugs are used for creating sites within a team (e.g., my-team-slug)\nDeploy IDs are returned when creating deploys and can be used to track deploy status\nBuild hooks return a URL that can be POSTed to externally trigger builds\nEnvironment variable contexts control where variables are available: all, production, deploy-preview, branch-deploy, dev\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets 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\nError Handling\nStatus\tMeaning\n400\tMissing Netlify connection\n401\tInvalid or missing Maton API key\n404\tResource not found\n429\tRate limited\n4xx/5xx\tPassthrough error from Netlify 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 netlify. For example:\nCorrect: https://gateway.maton.ai/netlify/api/v1/sites\nIncorrect: https://gateway.maton.ai/api/v1/sites\nResources\nNetlify API Documentation\nNetlify CLI\nNetlify Build Hooks\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/netlify-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/netlify-api",
    "owner": "byungkyu",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/netlify-api",
    "downloadUrl": "https://openagent3.xyz/downloads/netlify-api",
    "agentUrl": "https://openagent3.xyz/skills/netlify-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/netlify-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/netlify-api/agent.md"
  }
}