Netlify Site API

The Site API from Netlify — 4 operation(s) for site.

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /sites List my sites · List sites #
Ask an LLM
“What sites do I have access to?”
“Can I search my sites by name?”
Tell an agent
List all my sites.
Find my sites whose name matches {name}.
POST /sites Create a new site · Create site #
Ask an LLM
“How do I create a new Netlify site through the API?”
“Can I set a custom domain when I create a site?”
Tell an agent
Create a new site named {name}.
Create site {name} with custom domain {domain}.
GET /sites/{site_id} Get a site's details · Get site #
Ask an LLM
“Can I see a site's settings, URL and published deploy?”
“What feature flags are enabled for my site?”
Tell an agent
Get details for site {site}.
Show site {site} including feature flags {flags}.
PATCH /sites/{site_id} Update a site's settings · Update site #
Ask an LLM
“Can I rename a site or change its custom domain?”
“How do I force HTTPS on an existing site?”
Tell an agent
Rename site {site} to {name}.
Set custom domain {domain} on site {site}.
DELETE /sites/{site_id} Delete a site · Delete site #
Ask an LLM
“How do I permanently delete a site?”
“Is deleting a site reversible?”
Tell an agent destructive · confirm first
Delete site {site}.
Permanently remove site {site} from my account.
PUT /sites/{site_id}/unlink_repo Unlink a site's Git repository · Unlink site repo #
Ask an LLM
“How do I disconnect my site from its Git repo?”
“What gets deleted when I unlink a repository from a site?”
Tell an agent destructive · confirm first
Unlink the repository from site {site}.
Disconnect site {site} from Git, removing its deploy keys and build hooks.
PUT /sites/{site_id}/enable Re-enable a disabled site · Enable site #
Ask an LLM
“Can I turn a site back on after I disabled it?”
“Why can't I re-enable a site that was disabled for exceeding usage?”
Tell an agent
Re-enable site {site}.
Turn site {site} back on so it serves content again.
PUT /sites/{site_id}/disable Disable a site · Disable site #
Ask an LLM
“How do I take a site offline temporarily without deleting it?”
“Do I need to give a reason when disabling a site?”
Tell an agent
Disable site {site} because {reason}.
Take site {site} offline with reason {reason}.
POST /{account_slug}/sites Create a site in a team · Create site in team #
Ask an LLM
“How do I create a site under a specific team rather than my personal account?”
“Can I create a team site with a custom domain?”
Tell an agent
Create site {name} in team {team}.
Create a site in team {team} with custom domain {domain}.
GET /{account_slug}/sites List a team's sites · List sites for account #
Ask an LLM
“Which sites belong to a particular team?”
“Can I search a team's sites by name?”
Tell an agent
List all sites in team {team}.
Find sites named {name} in team {team}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/netlify:netlify-site-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

netlify-site-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.57.0
  title: Netlify's API documentation Site API
  description: Netlify is a hosting service for the programmable web.
  termsOfService: https://www.netlify.com/legal/terms-of-use/
  x-logo:
    url: netlify-logo.png
    href: https://www.netlify.com/docs/
    altText: Netlify
servers:
- url: https://api.netlify.com/api/v1
security:
- netlifyAuth: []
tags:


# --- truncated at 32 KB (103 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/netlify/refs/heads/main/openapi/netlify-site-api-openapi.yml