Netlify
The Netlify API is a REST interface that lets you programmatically create and manage Netlify sites and apps—including atomic deploys via file digests or ZIP uploads—as well as related resources such as environment variables, forms, DNS, and site metadata.
Latency
373ms p95
Uptime
100.0% 30d
Playground
Verified
live
Endpoints
/sites/{site_id}
Permanently deletes a site.
/sites/{site_id}/metadata
Gets the metadata object for a site.
/sites/{site_id}/metadata
Replaces a site's metadata object.
/sites
Returns all sites you have access to.
/sites/{site_id}
Returns the specified site.
/sites
Creates a new site in the personal team.
/{account_slug}/sites
Creates a new site in a specific team.
/sites/{site_id}
Updates some attributes on a site.
/sites/{site_id}
Replaces a site's attributes (full update).
/sites/{site_id}/ssl
Activates SSL for a site with a custom domain.
/accounts/{account_id}/env
Returns all environment variables for a team or site.
/accounts/{account_id}/env/{key}
Returns a single environment variable for a team or site.
/accounts/{account_id}/env
Creates site or shared environment variables.
/accounts/{account_id}/env/{key}
Updates an existing environment variable by replacing all of its values.
/accounts/{account_id}/env/{key}
Updates or creates a new value for an existing environment variable.
/accounts/{account_id}/env/{key}
Deletes an environment variable and all of its values.
/accounts/{account_id}/env/{key}/value/{id}
Deletes a specific environment variable value.
/sites/{site_id}/files
Returns a list of all the files in the current deploy.
/sites/{site_id}/files/{file_path}
Returns metadata for a specific file.
/sites/{site_id}/deploys
Creates a new deploy using a file digest (or ZIP file).
/deploys/{deploy_id}/files/{file_path}
Uploads a file's contents for a deploy.
/deploys/{deploy_id}/functions/{function_name}
Uploads a serverless function for a deploy.
/sites/{site_id}/deploys/{deploy_id}
Retrieves the state of a specific deploy (preparing, uploading, ready, etc.).
/deploys/{deploy_id}
Polls a deploy to check if it is ready.
24 endpoints auto-detected
Authentication
This API uses Bearer token authentication — pass your token in the Authorization header.
curl -X DELETE \
"https://docs.netlify.com/api/get-started//sites/{site_id}" \
-H "Authorization: Bearer YOUR_TOKEN"docs.netlify.com · HTTPS only