> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/cloud-devops/netlify.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Netlify

Netlify hosts and deploys websites. Manage sites, deploys, builds, environment variables, DNS zones and records, hooks and account members.

![Netlify logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-41f17b2e21470a41833412eece6fe8d043c30b0e%2Fnetlify.png?alt=media)

|                    |                                                                              |
| ------------------ | ---------------------------------------------------------------------------- |
| **Category**       | [Cloud and DevOps](https://docs.fastn.ai/connectors/catalog/cloud-devops.md) |
| **Website**        | [netlify.com](https://netlify.com)                                           |
| **Authentication** | Access token                                                                 |
| **Slug**           | `netlify`                                                                    |
| **On fastn.ai**    | [Embed Netlify in your product](https://fastn.ai/integrations/netlify)       |

## Setup

Your customers enter their access token for Netlify when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Netlify from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Netlify**.
2. Select **Connect** on the Netlify card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Netlify's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Account Member</td><td><code>addMember</code></td><td>Invite a new member to an account/team by email with a given role.</td></tr><tr><td>Cancel Site Deploy</td><td><code>cancelSiteDeploy</code></td><td>Cancel an in-progress deploy by its deploy ID.</td></tr><tr><td>Create Deploy Key</td><td><code>createDeployKey</code></td><td>Create a new deploy key. The generated public key can be added to a Git provider to grant repository access.</td></tr><tr><td>Create DNS Record</td><td><code>createDnsRecord</code></td><td>Create a new DNS record in a zone. Hostname, type, and value are required.</td></tr><tr><td>Create DNS Zone</td><td><code>createDnsZone</code></td><td>Create a new DNS zone for a domain under an account. Name and account ID are required.</td></tr><tr><td>Create Environment Variables</td><td><code>createEnvVars</code></td><td>Create an environment variable for an account or, with site_id, for one site. Key, values and secret flag are required. Netlify applies all scopes (builds, functions, runtime, post-processing) by default; this action does not set specific scopes.</td></tr><tr><td>Create Hook</td><td><code>createHook</code></td><td>Create a notification hook for a site that fires on a given event. The hook type and event are required.</td></tr><tr><td>Create Service Instance</td><td><code>createServiceInstance</code></td><td>Provision an add-on service instance for a site by add-on slug.</td></tr><tr><td>Create Site</td><td><code>createSite</code></td><td>Create a new site in the default account. All fields are optional; when name is omitted Netlify auto-generates one.</td></tr><tr><td>Create Site Build</td><td><code>createSiteBuild</code></td><td>Trigger a new build for a site. Optionally clear the build cache. Requires the site to have a linked repository.</td></tr></tbody></table>

<details>

<summary>View 78 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Site Deploy</td><td><code>createSiteDeploy</code></td><td>Create a new deploy for a site by supplying a file digest. Pass an empty files object to create a draft deploy.</td></tr><tr><td>Create Site In Team</td><td><code>createSiteInTeam</code></td><td>Create a new site under a specific account/team identified by its slug.</td></tr><tr><td>Create Site Snippet</td><td><code>createSiteSnippet</code></td><td>Create a custom code snippet injected into a site's pages. Title, general code, and its position are required.</td></tr><tr><td>Create Split Test</td><td><code>createSplitTest</code></td><td>Create a branch-based split test for a site. Branch tests defining branches and their traffic weights are required.</td></tr><tr><td>Delete Deploy</td><td><code>deleteDeploy</code></td><td>Delete a deploy directly by its deploy ID. Returns no content on success.</td></tr><tr><td>Delete Deploy Key</td><td><code>deleteDeployKey</code></td><td>Delete a deploy key by its ID. Returns no content on success.</td></tr><tr><td>Delete DNS Record</td><td><code>deleteDnsRecord</code></td><td>Delete a DNS record by zone ID and record ID. Returns no content on success.</td></tr><tr><td>Delete DNS Zone</td><td><code>deleteDnsZone</code></td><td>Delete a DNS zone by its ID. Returns no content on success.</td></tr><tr><td>Delete Environment Variable</td><td><code>deleteEnvVar</code></td><td>Delete an environment variable by account and key. Returns no content on success.</td></tr><tr><td>Delete Environment Variable Value</td><td><code>deleteEnvVarValue</code></td><td>Delete a single value of an environment variable by account, key, and value ID. Returns no content on success.</td></tr><tr><td>Delete Hook</td><td><code>deleteHook</code></td><td>Delete a hook by its ID. Returns no content on success.</td></tr><tr><td>Delete Service Instance</td><td><code>deleteServiceInstance</code></td><td>Delete an add-on service instance by site, add-on, and instance ID. Returns no content on success.</td></tr><tr><td>Delete Site</td><td><code>deleteSite</code></td><td>Permanently delete a site by its ID. Returns no content on success.</td></tr><tr><td>Delete Site Deploy</td><td><code>deleteSiteDeploy</code></td><td>Delete a deploy of a site by site ID and deploy ID. Returns no content on success.</td></tr><tr><td>Delete Site Form</td><td><code>deleteSiteForm</code></td><td>Delete a form from a site by site ID and form ID. Returns no content on success.</td></tr><tr><td>Delete Site Snippet</td><td><code>deleteSiteSnippet</code></td><td>Delete a code snippet from a site by site ID and snippet ID. Returns no content on success.</td></tr><tr><td>Delete Submission</td><td><code>deleteSubmission</code></td><td>Delete a form submission by its ID. Returns no content on success.</td></tr><tr><td>Disable Site</td><td><code>disableSite</code></td><td>Disable a site, taking it offline. A reason is required.</td></tr><tr><td>Disable Split Test</td><td><code>disableSplitTest</code></td><td>Unpublish (disable) an active split test. Returns no content on success.</td></tr><tr><td>Enable Hook</td><td><code>enableHook</code></td><td>Enable a previously disabled hook by its ID.</td></tr><tr><td>Enable Site</td><td><code>enableSite</code></td><td>Re-enable a site that was previously disabled. Returns no content on success.</td></tr><tr><td>Enable Split Test</td><td><code>enableSplitTest</code></td><td>Publish (enable) a split test so traffic is split across the configured branches. Returns no content on success.</td></tr><tr><td>Get Account</td><td><code>getAccount</code></td><td>Retrieve a single account/team by its ID.</td></tr><tr><td>Get Account Build Status</td><td><code>getAccountBuildStatus</code></td><td>Get the build status and concurrency usage for an account/team.</td></tr><tr><td>Get Account Member</td><td><code>getMember</code></td><td>Retrieve a single member of an account/team by slug and member ID.</td></tr><tr><td>Get Current User</td><td><code>getCurrentUser</code></td><td>Retrieve the profile of the authenticated user.</td></tr><tr><td>Get Deploy</td><td><code>getDeploy</code></td><td>Retrieve a deploy directly by its deploy ID.</td></tr><tr><td>Get Deploy Key</td><td><code>getDeployKey</code></td><td>Retrieve a single deploy key by its ID.</td></tr><tr><td>Get DNS Record</td><td><code>getDnsRecord</code></td><td>Retrieve a single DNS record by zone ID and record ID.</td></tr><tr><td>Get DNS Zone</td><td><code>getDnsZone</code></td><td>Retrieve a single DNS zone by its ID.</td></tr><tr><td>Get Environment Variable</td><td><code>getEnvVar</code></td><td>Retrieve a single environment variable by account and key.</td></tr><tr><td>Get Hook</td><td><code>getHook</code></td><td>Retrieve a single hook by its ID.</td></tr><tr><td>Get Service Instance</td><td><code>getServiceInstance</code></td><td>Retrieve a single add-on service instance by site, add-on, and instance ID.</td></tr><tr><td>Get Site</td><td><code>getSite</code></td><td>Retrieve a single site by its ID.</td></tr><tr><td>Get Site Build</td><td><code>getSiteBuild</code></td><td>Retrieve a single build by its build ID.</td></tr><tr><td>Get Site Deploy</td><td><code>getSiteDeploy</code></td><td>Retrieve a specific deploy of a site by site ID and deploy ID.</td></tr><tr><td>Get Site File</td><td><code>getSiteFile</code></td><td>Retrieve metadata for a single file in a site's published deploy by its path.</td></tr><tr><td>Get Site Snippet</td><td><code>getSiteSnippet</code></td><td>Retrieve a single code snippet of a site by site ID and snippet ID.</td></tr><tr><td>Get Split Test</td><td><code>getSplitTest</code></td><td>Retrieve a single split test by site ID and split test ID.</td></tr><tr><td>Get Submission</td><td><code>getSubmission</code></td><td>Retrieve a single form submission by its ID.</td></tr><tr><td>List Account Audit Events</td><td><code>listAccountAuditEvents</code></td><td>List audit log events for an account/team. Audit logging may require a paid plan.</td></tr><tr><td>List Account Members</td><td><code>listMembers</code></td><td>List all members of an account/team by its slug.</td></tr><tr><td>List Account Types</td><td><code>listAccountTypes</code></td><td>List the account/team plan types available to the authenticated user.</td></tr><tr><td>List Accounts</td><td><code>listAccounts</code></td><td>List all accounts/teams the authenticated user is a member of.</td></tr><tr><td>List Build Hooks</td><td><code>listHooks</code></td><td>List all notification and build hooks configured for a site.</td></tr><tr><td>List Deploy Keys</td><td><code>listDeployKeys</code></td><td>List all deploy keys for the authenticated user.</td></tr><tr><td>List DNS Records</td><td><code>listDnsRecords</code></td><td>List all DNS records in a DNS zone.</td></tr><tr><td>List DNS Zones</td><td><code>listDnsZones</code></td><td>List all DNS zones the user has access to, optionally filtered by account slug.</td></tr><tr><td>List Environment Variables</td><td><code>getEnvVars</code></td><td>List environment variables for an account, optionally scoped to a site or context.</td></tr><tr><td>List Form Submissions</td><td><code>listFormSubmissions</code></td><td>List all submissions for a specific form, with pagination.</td></tr><tr><td>List Hook Types</td><td><code>listHookTypes</code></td><td>List all available hook types and the events they support.</td></tr><tr><td>List Service Instances</td><td><code>listServiceInstances</code></td><td>List all add-on service instances provisioned for a site.</td></tr><tr><td>List Site Builds</td><td><code>listSiteBuilds</code></td><td>List all builds for a site, with pagination.</td></tr><tr><td>List Site Deploys</td><td><code>listSiteDeploys</code></td><td>List all deploys for a site, with optional filtering by state, branch, and deploy type.</td></tr><tr><td>List Site Files</td><td><code>listSiteFiles</code></td><td>List all files in the current published deploy of a site.</td></tr><tr><td>List Site Forms</td><td><code>listSiteForms</code></td><td>List all forms configured for a site.</td></tr><tr><td>List Site Snippets</td><td><code>listSiteSnippets</code></td><td>List all custom code snippets injected into a site's pages.</td></tr><tr><td>List Site Submissions</td><td><code>listSiteSubmissions</code></td><td>List all form submissions across every form on a site, with pagination.</td></tr><tr><td>List Sites</td><td><code>listSites</code></td><td>List all sites the authenticated user has access to. Supports filtering by name and ownership, with pagination.</td></tr><tr><td>List Sites For Account</td><td><code>listSitesForAccount</code></td><td>List all sites belonging to a specific account/team, identified by its slug.</td></tr><tr><td>List Split Tests</td><td><code>listSplitTests</code></td><td>List all branch-based split tests (A/B tests) configured for a site.</td></tr><tr><td>Lock Deploy</td><td><code>lockDeploy</code></td><td>Lock a deploy to prevent it from being overwritten by future deploys.</td></tr><tr><td>Remove Account Member</td><td><code>removeMember</code></td><td>Remove a member from an account/team by slug and member ID. Returns no content on success.</td></tr><tr><td>Restore Site Deploy</td><td><code>restoreSiteDeploy</code></td><td>Restore a previous deploy, republishing it as the current live deploy.</td></tr><tr><td>Rollback Site Deploy</td><td><code>rollbackSiteDeploy</code></td><td>Roll a site back to its previous published deploy. Returns no content on success.</td></tr><tr><td>Set Environment Variable Value</td><td><code>setEnvVarValue</code></td><td>Set or update the value of an environment variable for a specific deploy context.</td></tr><tr><td>Transfer DNS Zone</td><td><code>transferDnsZone</code></td><td>Transfer a DNS zone to another account and user. All target identifiers are required.</td></tr><tr><td>Unlink Site Repository</td><td><code>unlinkSiteRepo</code></td><td>Disconnect the linked Git repository from a site.</td></tr><tr><td>Unlock Deploy</td><td><code>unlockDeploy</code></td><td>Unlock a previously locked deploy so it can be overwritten by future deploys.</td></tr><tr><td>Update Account</td><td><code>updateAccount</code></td><td>Update an account/team's settings such as name and billing details.</td></tr><tr><td>Update Account Member</td><td><code>updateMember</code></td><td>Update an account/team member's role or site access.</td></tr><tr><td>Update Environment Variable</td><td><code>updateEnvVar</code></td><td>Replace an environment variable's values and secret flag for a given key; existing values are replaced by the values sent. Scopes are not changed (Netlify keeps all scopes by default).</td></tr><tr><td>Update Hook</td><td><code>updateHook</code></td><td>Update an existing hook's event, type, or configuration data.</td></tr><tr><td>Update Service Instance</td><td><code>updateServiceInstance</code></td><td>Update the configuration of an add-on service instance. Returns no content on success.</td></tr><tr><td>Update Site</td><td><code>updateSite</code></td><td>Update an existing site's settings. Only the fields you provide are changed.</td></tr><tr><td>Update Site Deploy</td><td><code>updateSiteDeploy</code></td><td>Update a deploy of a site with a new file digest.</td></tr><tr><td>Update Site Snippet</td><td><code>updateSiteSnippet</code></td><td>Update an existing code snippet of a site. Returns no content on success.</td></tr><tr><td>Update Split Test</td><td><code>updateSplitTest</code></td><td>Update the branch tests of an existing split test.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/cloud-devops/netlify.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
