Connect to AI
Hosting & Deployment Bearer Token

Netlify REST API

Deploy and manage modern web applications at scale

Netlify is a cloud platform for deploying and hosting static websites, serverless functions, and JAMstack applications. The Netlify API enables developers to programmatically manage deployments, configure domains, handle form submissions, and control build processes. It's widely used for CI/CD automation, multi-environment deployments, and building custom deployment workflows.

Base URL https://api.netlify.com/api/v1

API Endpoints

MethodEndpointDescription
GET/sitesList all sites in your Netlify account, including site ID, name, and URL.
GET/sites/{site_id}Get details for a specific site including configuration, custom domain, and deploy settings.
POST/sitesCreate a new site by providing a name and optional repository configuration; returns the site ID.
PATCH/sites/{site_id}Update site configuration such as custom domain, build settings, or environment variables.
DELETE/sites/{site_id}Delete a site permanently using its site_id; removes all associated deploys and configuration.
GET/sites/{site_id}/deploysList all deploys for a site including deploy ID, state, and published URL.
POST/sites/{site_id}/deploysCreate a new deploy by uploading files or providing a Git reference; returns the deploy ID.
GET/deploys/{deploy_id}Get deploy details including state, commit SHA, deploy time, and published URL for a specific deploy_id.
POST/sites/{site_id}/buildsTrigger a new build from the linked repository; optionally specify a branch or clear cache.
GET/sites/{site_id}/formsList forms for a site including form ID, name, and submission count.
GET/forms/{form_id}/submissionsGet form submissions including submission data, timestamp, and submitter IP for a specific form_id.
GET/sites/{site_id}/snippetsList snippet injections for a site including snippet ID, position, and HTML content.
POST/sites/{site_id}/snippetsCreate a snippet injection by specifying HTML content and injection position (head or body).
GET/hooksList build hooks including hook ID, URL, and associated site; used to trigger builds via webhook.
POST/hooksCreate a build hook for a site and branch; returns a unique webhook URL to trigger builds.

Code Examples

curl -X GET 'https://api.netlify.com/api/v1/sites' \
  -H 'Authorization: Bearer YOUR_NETLIFY_TOKEN' \
  -H 'Content-Type: application/json'

Use Netlify from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for Netlify. Paste your Netlify API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Netlify directly with your credentials — no local install, works on mobile.

deploy_site Deploy a site to Netlify from a Git repository or local files
list_sites Retrieve all sites in the Netlify account with deployment status
trigger_build Trigger a new build for a specific site using build hooks
manage_environment_variables Set, update, or retrieve environment variables for a site
get_form_submissions Fetch form submissions from Netlify Forms for analysis

Connect in 60 seconds

Paste your Netlify key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect Netlify to your AI →

Related APIs