For the complete documentation index, see llms.txt. This page is also available as Markdown.

Automations

Automations run actions when something happens in a drive, for example tagging files on upload or emailing a share link when a folder changes.

An automation is a graph of trigger, condition, and action nodes. Create it with POST /automations, save the graph with PUT /automations/{automation_id}, then activate a version with PATCH /automations/{automation_id}/versions/{version}/status. GET /automations/integrations lists every available trigger and action.

List available integrations with their triggers and actions

get
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Query parameters
workspace_idstring · uuidRequired

ID of the workspace. List yours with GET /workspaces.

Example: 3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90
drive_idstring · uuid · nullableOptional

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Responses
200

A list of all registered integrations.

application/json
idstringRequired
namestringRequired
descriptionstringRequired
get/automations/integrations
GET /automations/integrations?workspace_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "text",
    "name": "text",
    "description": "text",
    "triggers": [
      {
        "id": "text",
        "name": "text",
        "description": "text",
        "output_schema": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "config_schema": {
          "ANY_ADDITIONAL_PROPERTY": "[Circular Reference]"
        }
      }
    ],
    "actions": [
      {
        "id": "text",
        "name": "text",
        "description": "text",
        "config_schema": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "output_schema": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "suggested_follow_up": {
          "integration_id": "SHADE",
          "operation": "text",
          "config_from_output": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          }
        },
        "provider": "text"
      }
    ]
  }
]

List automations for a drive

get
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Query parameters
drive_idstring · uuidRequired

The id of the drive to list automations for.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Responses
200

A list of automations in the specified drive.

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableRequired
statusstring · enumRequiredPossible values:
createdstring · date-timeRequired
created_by_idstring · uuid · nullableRequired
created_by_namestring · nullableRequired
created_by_avatar_urlstring · nullableRequired
total_runsintegerRequired
last_publishedstring · date-time · nullableRequired
last_failed_runstring · date-time · nullableRequired
get/automations
GET /automations?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "description": "text",
    "status": "DRAFT",
    "created": "2026-01-01T00:00:00.000Z",
    "created_by_id": "123e4567-e89b-12d3-a456-426614174000",
    "created_by_name": "text",
    "created_by_avatar_url": "text",
    "trigger": {
      "integration_id": "text",
      "operation": "text",
      "label": "text",
      "manual_target": {
        "type": "asset"
      },
      "has_input_fields": false
    },
    "total_runs": 1,
    "last_published": "2026-01-01T00:00:00.000Z",
    "last_failed_run": "2026-01-01T00:00:00.000Z"
  }
]

Create a new automation

post

Create an automation with an initial v1 DRAFT version.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
namestringRequired
drive_idstring · uuidRequired
descriptionstring · nullableOptional
Responses
200

The newly created automation.

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableRequired
drive_idstring · uuidRequired
created_by_idstring · uuid · nullableRequired
createdstring · date-timeRequired
active_version_numberinteger · nullableRequired
post/automations
POST /automations HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "name": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "description": "text"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "created_by_id": "123e4567-e89b-12d3-a456-426614174000",
  "created": "2026-01-01T00:00:00.000Z",
  "loaded_version": {
    "version": 1,
    "status": "DRAFT",
    "viewport": {
      "x": 1,
      "y": 1,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "node_type": "TRIGGER",
        "integration_id": "text",
        "operation": "text",
        "label": "text",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "position_x": 1,
        "position_y": 1
      }
    ],
    "edges": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "output_key": "text"
      }
    ]
  },
  "active_version": {
    "version": 1,
    "status": "DRAFT",
    "viewport": {
      "x": 1,
      "y": 1,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "node_type": "TRIGGER",
        "integration_id": "text",
        "operation": "text",
        "label": "text",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "position_x": 1,
        "position_y": 1
      }
    ],
    "edges": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "output_key": "text"
      }
    ]
  },
  "active_version_number": 1,
  "versions": [
    {
      "version": 1,
      "status": "DRAFT"
    }
  ]
}

Get an automation by ID

get
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
automation_idstring · uuidRequired

The UUID of the automation to retrieve.

Responses
200

The automation with its active (or latest) version.

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableRequired
drive_idstring · uuidRequired
created_by_idstring · uuid · nullableRequired
createdstring · date-timeRequired
active_version_numberinteger · nullableRequired
get/automations/{automation_id}
GET /automations/{automation_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "created_by_id": "123e4567-e89b-12d3-a456-426614174000",
  "created": "2026-01-01T00:00:00.000Z",
  "loaded_version": {
    "version": 1,
    "status": "DRAFT",
    "viewport": {
      "x": 1,
      "y": 1,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "node_type": "TRIGGER",
        "integration_id": "text",
        "operation": "text",
        "label": "text",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "position_x": 1,
        "position_y": 1
      }
    ],
    "edges": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "output_key": "text"
      }
    ]
  },
  "active_version": {
    "version": 1,
    "status": "DRAFT",
    "viewport": {
      "x": 1,
      "y": 1,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "node_type": "TRIGGER",
        "integration_id": "text",
        "operation": "text",
        "label": "text",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "position_x": 1,
        "position_y": 1
      }
    ],
    "edges": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "output_key": "text"
      }
    ]
  },
  "active_version_number": 1,
  "versions": [
    {
      "version": 1,
      "status": "DRAFT"
    }
  ]
}

Save automation graph (whole-graph replace)

put

Replace all nodes and edges for an automation.

If the current version is DRAFT, overwrites it in place. If the current version is ACTIVE, creates a new DRAFT version to preserve the active version's graph for execution history.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
automation_idstring · uuidRequired

The UUID of the automation to save.

Body
namestringRequired
descriptionstring · nullableOptional
Responses
200

The saved automation with updated version.

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableRequired
drive_idstring · uuidRequired
created_by_idstring · uuid · nullableRequired
createdstring · date-timeRequired
active_version_numberinteger · nullableRequired
put/automations/{automation_id}
PUT /automations/{automation_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 462

{
  "name": "text",
  "description": "text",
  "viewport": {
    "x": 1,
    "y": 1,
    "zoom": 1
  },
  "nodes": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "node_type": "TRIGGER",
      "integration_id": "text",
      "operation": "text",
      "label": "",
      "config": {
        "ANY_ADDITIONAL_PROPERTY": true
      },
      "position_x": 0,
      "position_y": 0
    }
  ],
  "edges": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
      "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
      "output_key": "text"
    }
  ]
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "created_by_id": "123e4567-e89b-12d3-a456-426614174000",
  "created": "2026-01-01T00:00:00.000Z",
  "loaded_version": {
    "version": 1,
    "status": "DRAFT",
    "viewport": {
      "x": 1,
      "y": 1,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "node_type": "TRIGGER",
        "integration_id": "text",
        "operation": "text",
        "label": "text",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "position_x": 1,
        "position_y": 1
      }
    ],
    "edges": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "output_key": "text"
      }
    ]
  },
  "active_version": {
    "version": 1,
    "status": "DRAFT",
    "viewport": {
      "x": 1,
      "y": 1,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "node_type": "TRIGGER",
        "integration_id": "text",
        "operation": "text",
        "label": "text",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "position_x": 1,
        "position_y": 1
      }
    ],
    "edges": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "output_key": "text"
      }
    ]
  },
  "active_version_number": 1,
  "versions": [
    {
      "version": 1,
      "status": "DRAFT"
    }
  ]
}

Delete an automation

delete
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
automation_idstring · uuidRequired

The UUID of the automation to delete.

Responses
204

Successful Response

No content

delete/automations/{automation_id}
DELETE /automations/{automation_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*

No content

Get execution history for an automation

get
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
automation_idstring · uuidRequired

The UUID of the automation to get executions for.

Query parameters
pageinteger · min: 1Optional

1-indexed page number.

Default: 1
page_sizeinteger · min: 1 · max: 100Optional

Number of executions per page.

Default: 20
Responses
200

Paginated list of executions for the automation.

application/json
pageintegerRequired
page_sizeintegerRequired
has_nextbooleanRequired
get/automations/{automation_id}/executions
GET /automations/{automation_id}/executions HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "executions": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "automation_id": "123e4567-e89b-12d3-a456-426614174000",
      "version": 1,
      "status": "QUEUED",
      "trigger_data": {
        "ANY_ADDITIONAL_PROPERTY": true
      },
      "node_outputs": {
        "ANY_ADDITIONAL_PROPERTY": {
          "ANY_ADDITIONAL_PROPERTY": true
        }
      },
      "current_node_id": "123e4567-e89b-12d3-a456-426614174000",
      "execution_type": "DEFAULT",
      "node_state": {
        "poll": "[Circular Reference]"
      },
      "started_at": "2026-01-01T00:00:00.000Z",
      "completed_at": "2026-01-01T00:00:00.000Z",
      "duration_ms": 1,
      "created": "2026-01-01T00:00:00.000Z"
    }
  ],
  "page": 1,
  "page_size": 1,
  "has_next": true
}

Run a manually-triggered automation on a selection

post
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
automation_idstring · uuidRequired

The UUID of the automation.

Body
selectionone ofRequired
or
Responses
201

The ids of the queued executions.

application/json
execution_idsstring · uuid[]Required
post/automations/{automation_id}/executions
POST /automations/{automation_id}/executions HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 125

{
  "selection": {
    "type": "asset",
    "asset_ids": [
      "123e4567-e89b-12d3-a456-426614174000"
    ]
  },
  "inputs": {
    "ANY_ADDITIONAL_PROPERTY": true
  }
}
{
  "execution_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}

The input form for manually running an automation

get
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
automation_idstring · uuidRequired

The UUID of the automation.

Responses
200

JSON schema for run inputs; null when there is no form.

application/json
get/automations/{automation_id}/executions/form
GET /automations/{automation_id}/executions/form HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "inputs_schema": {
    "ANY_ADDITIONAL_PROPERTY": true
  }
}

Get a specific version of an automation

get
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
automation_idstring · uuidRequired

The UUID of the automation.

versionintegerRequired

The version number to retrieve.

Responses
200

The requested automation version with its nodes and edges.

application/json
versionintegerRequired
statusstring · enumRequiredPossible values:
get/automations/{automation_id}/versions/{version}
GET /automations/{automation_id}/versions/{version} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "version": 1,
  "status": "DRAFT",
  "viewport": {
    "x": 1,
    "y": 1,
    "zoom": 1
  },
  "nodes": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "node_type": "TRIGGER",
      "integration_id": "text",
      "operation": "text",
      "label": "text",
      "config": {
        "ANY_ADDITIONAL_PROPERTY": true
      },
      "position_x": 1,
      "position_y": 1
    }
  ],
  "edges": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
      "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
      "output_key": "text"
    }
  ]
}

Set the status of an automation version

patch

Set a version's status. When activating, any previously active version is deactivated.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
automation_idstring · uuidRequired

The UUID of the automation.

versionintegerRequired

The version number to update.

Body
statusstring · enumRequiredPossible values:
Responses
200

The automation with the updated version.

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableRequired
drive_idstring · uuidRequired
created_by_idstring · uuid · nullableRequired
createdstring · date-timeRequired
active_version_numberinteger · nullableRequired
patch/automations/{automation_id}/versions/{version}/status
PATCH /automations/{automation_id}/versions/{version}/status HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "status": "DRAFT"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "created_by_id": "123e4567-e89b-12d3-a456-426614174000",
  "created": "2026-01-01T00:00:00.000Z",
  "loaded_version": {
    "version": 1,
    "status": "DRAFT",
    "viewport": {
      "x": 1,
      "y": 1,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "node_type": "TRIGGER",
        "integration_id": "text",
        "operation": "text",
        "label": "text",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "position_x": 1,
        "position_y": 1
      }
    ],
    "edges": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "output_key": "text"
      }
    ]
  },
  "active_version": {
    "version": 1,
    "status": "DRAFT",
    "viewport": {
      "x": 1,
      "y": 1,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "node_type": "TRIGGER",
        "integration_id": "text",
        "operation": "text",
        "label": "text",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": true
        },
        "position_x": 1,
        "position_y": 1
      }
    ],
    "edges": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "source_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "target_node_id": "123e4567-e89b-12d3-a456-426614174000",
        "output_key": "text"
      }
    ]
  },
  "active_version_number": 1,
  "versions": [
    {
      "version": 1,
      "status": "DRAFT"
    }
  ]
}

Receive an inbound webhook for a webhook trigger node

post

Public endpoint: callers authenticate with the trigger node's bearer token (enforced by the dispatcher when require_auth is enabled), not a Shade session.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
trigger_node_idstring · uuidRequired

The trigger node id embedded in the webhook URL.

Responses
200

Acknowledgement that an execution was queued.

application/json
Other propertiesstringOptional
post/automations/webhooks/{trigger_node_id}
POST /automations/webhooks/{trigger_node_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "ANY_ADDITIONAL_PROPERTY": "text"
}

Last updated

Was this helpful?