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.
https://api.netlify.com/api/v1
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /sites | List 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 | /sites | Create 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}/deploys | List all deploys for a site including deploy ID, state, and published URL. |
| POST | /sites/{site_id}/deploys | Create 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}/builds | Trigger a new build from the linked repository; optionally specify a branch or clear cache. |
| GET | /sites/{site_id}/forms | List forms for a site including form ID, name, and submission count. |
| GET | /forms/{form_id}/submissions | Get form submissions including submission data, timestamp, and submitter IP for a specific form_id. |
| GET | /sites/{site_id}/snippets | List snippet injections for a site including snippet ID, position, and HTML content. |
| POST | /sites/{site_id}/snippets | Create a snippet injection by specifying HTML content and injection position (head or body). |
| GET | /hooks | List build hooks including hook ID, URL, and associated site; used to trigger builds via webhook. |
| POST | /hooks | Create a build hook for a site and branch; returns a unique webhook URL to trigger builds. |
Sponsor this page
AvailableReach developers actively building with Netlify. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →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 →