Reference · Tools

Netlify

Manage Netlify sites and deployments via the Netlify API.

Action Development v1

The Netlify node manages sites and deployments — creating, listing, fetching, cancelling and deleting them. A typical build is kicking off a rebuild when content changes in a CMS and reporting the deploy outcome back to the team.

Node type
Action
Parameters
12
Outputs
Output, Error
Credentials
Netlify

Netlify

Manage Netlify sites and deployments.

Overview

Netlify is a web hosting and deployment platform. This tool manages Netlify sites (get, list, delete) and deployments (create, cancel, get, list) via the Netlify REST API v1. It supports pagination for listing operations and uses Bearer token authentication.

Category: Development
Tool Name: netlify
Version: 1

Appearance: Icon: si-netlify | Color: #00C7B7

Node Type

Action — processes input items and produces output

Input / Output

DirectionPort(s)
InputInput
OutputOutput, Error

Credentials

This tool requires Netlify credentials. See the Credentials Guide for setup instructions.

Resources

ResourceValue
Deploydeploy
Sitesite

Operations

Deploy

OperationValueDescription
CancelcancelCancel a deployment
CreatecreateCreate a new deployment
GetgetGet a deployment
Get ManygetAllGet many deployments

Site

OperationValueDescription
DeletedeleteDelete a site
GetgetGet a site
Get ManygetAllGet many sites

Parameters

Deploy: Cancel

ParameterTypeRequiredDefaultDescription
Deploy IDstringYesThe deploy ID. Supports expressions like {{ $json.deployId }}.

Deploy: Create

ParameterTypeRequiredDefaultDescription
Site IDstringYesThe Netlify Site ID. Find it in Netlify dashboard: Site settings > General > Site ID. Supports expressions like {{ $json.siteId }}.
Additional FieldscollectionNo{}Additional fields for the deploy creation.
— BranchstringNoBranch to deploy from.
— TitlestringNoTitle for the deployment.

Deploy: Get

ParameterTypeRequiredDefaultDescription
Site IDstringYesThe Netlify Site ID. Find it in Netlify dashboard: Site settings > General > Site ID. Supports expressions like {{ $json.siteId }}.
Deploy IDstringYesThe deploy ID. Supports expressions like {{ $json.deployId }}.

Deploy: Get Many

ParameterTypeRequiredDefaultDescription
Site IDstringYesThe Netlify Site ID. Find it in Netlify dashboard: Site settings > General > Site ID. Supports expressions like {{ $json.siteId }}.
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo50Max number of results to return. (shown when Return All is false)

Site: Delete

ParameterTypeRequiredDefaultDescription
Site IDstringYesThe Netlify Site ID. Find it in Netlify dashboard: Site settings > General > Site ID. Supports expressions like {{ $json.siteId }}.

Site: Get

ParameterTypeRequiredDefaultDescription
Site IDstringYesThe Netlify Site ID. Find it in Netlify dashboard: Site settings > General > Site ID. Supports expressions like {{ $json.siteId }}.

Site: Get Many

ParameterTypeRequiredDefaultDescription
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo50Max number of results to return. (shown when Return All is false)

All Operations

ParameterTypeRequiredDefaultDescription
Max ConcurrencynumberNo10Maximum number of items to process concurrently.

Output Data

The Netlify API response is merged onto the input item JSON — fields already on the item pass through and the response object is written on top of them. Binary data is forwarded unchanged.

OperationOutput items per input item
deploy / cancel, create, getOne item carrying the deploy object
deploy / getAllFans out — one item per deployment returned
site / getOne item carrying the site object
site / getAllFans out — one item per site returned
site / deleteOne item carrying deleted: true and the siteId that was removed

With Return All on, both list operations page through the whole result set before fanning out; with it off, they request a single page capped at Limit.

Reference the result downstream by expression, e.g. {{ $json.id }} for a deploy or site ID.

Usage Examples

  • List all deployments for a Netlify site
  • Create a new deploy for a site
  • Cancel an in-progress deployment
  • Get details of a specific site
  • Delete a Netlify site
  • List all sites accessible to the authenticated user

Example Configuration

Create a deployment for a site, naming the branch and title:

{
  "type": "netlify",
  "parameters": {
    "resource": "deploy",
    "operation": "create",
    "siteId": "{{ $json.siteId }}",
    "additionalFields": {
      "branch": "main",
      "title": "Production deployment"
    }
  }
}

Check the status of a single deployment:

{
  "type": "netlify",
  "parameters": {
    "resource": "deploy",
    "operation": "get",
    "siteId": "{{ $json.siteId }}",
    "deployId": "{{ $json.deployId }}"
  }
}

List the 50 most recent deployments for a site:

{
  "type": "netlify",
  "parameters": {
    "resource": "deploy",
    "operation": "getAll",
    "siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "returnAll": false,
    "limit": 50
  }
}

Cancel an in-progress deployment:

{
  "type": "netlify",
  "parameters": {
    "resource": "deploy",
    "operation": "cancel",
    "deployId": "{{ $json.deployId }}"
  }
}

List every site the credential can reach:

{
  "type": "netlify",
  "parameters": {
    "resource": "site",
    "operation": "getAll",
    "returnAll": true
  }
}

Delete a site:

{
  "type": "netlify",
  "parameters": {
    "resource": "site",
    "operation": "delete",
    "siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
}

Error Handling

ModeBehavior
stopHalts workflow on first error
continueSkips failed items, passes successful ones through
errorPortRoutes failed items to Error output port

Tips

Manages Netlify sites and deployments, supporting create, cancel, get, list, and delete operations via the Netlify API.

Frequently asked questions

Can it cancel a running deploy?

Yes, cancel is one of the supported deployment operations — useful when a newer commit supersedes an in-flight build.

What can it manage besides deploys?

Sites themselves, so a workflow can list or inspect sites as well as act on their deployments.

How do I react to a deploy finishing?

Use the Netlify Trigger, which fires on deploy lifecycle events and on form submissions.

Which credential does it need?

A Netlify credential, shared with the Netlify Trigger.

Build with the Netlify node

Drop it into a workflow, wire it to an agent, or call it on a schedule. You'll need Netlify credentials first.

Open BusyBot

Last updated . Spotted something wrong? Tell us.