API reference

Automation definitions

Create automations from a graph of nodes and connections, read and replace a definition, duplicate, archive and delete automations, and read or rotate the address and secret of a hosted-webhook trigger. Every save is the app's own: the plan's number of automations, the editor's checks and the version history apply. 9 endpoints. Add your API key in the authentication panel to send test requests from this page.

Create an automation

POST/api/external/v1/automations

Creates an automation (201) and answers its definition. The same save as the app's: it counts against the plan's number of automations, seeds a Manual Launch trigger when no graph is sent, and records version 1 in its history.

Body: name (required, up to 255 characters), description, iconKey (up to 80), iconColor (up to 32), enabled (default true: a schedule, event or hosted webhook starts it as soon as it is saved - send false to switch it on later), projectId (one of your projects), defaultApplicationId, integrationCredentialLinks ([{localId, credentialId, integrationType, label?}]: saved credentials its steps use), aiEditable (whether the workspace's AI may change it with its own tools; default false), graph.

The graph is {"nodes": [...], "connections": [...]} (optional at the top level besides: vars, varValues, promptFragments, viewport).

  • A node: id (text, unique in the graph), type (a node type of GET /automations/node-catalog: TRIGGER, API_CALL, AI_LLM_INFERENCE, CONDITIONAL, BROWSER_USE ...), label, x, y (its place in the editor) and data (its settings, as the catalog's configSchema for that type describes them).
  • A trigger is a node of type TRIGGER: data.triggerType MANUAL (Manual Launch - started by a test run or POST /automations/{automationId}/runs), API (Webhook / API Call - started by that route), SCHEDULE (data.schedule), EVENT (data.eventName, filters from GET /automations/event-fields), WEBHOOK (a hosted address: data.path, httpMethod, responseMode immediate or blocking, authMethod NONE, SECRET, OAUTH2 or API_KEY with authHeaderName + authToken for SECRET) or TOOL (data.toolName).
  • A connection: {"source": nodeId, "target": nodeId, "sourceHandle"?, "targetHandle"?}; branching nodes name their way out in sourceHandle (CONDITIONAL true/false, SWITCH its case values and default, loops body/done, error when a node follows its error path - the catalog's connectionHandles). Not edges.
  • Steps read what came before with {{...}}: {{automation.trigger.payload}}, {{automation.outputs.<nodeId>...}}, a started run's input fields as {{field}} (the catalog's variableScopes and eventPayloads list every path).
  • A node's data.timeoutMs, when set, is 1 to 300000.

Write-only values. Secrets are answered as ***: text under a key that reads as a secret (authorization, api key, token, secret, password, cookie, signature, credential - not an id), also inside a step's JSON text such as an HTTP step's headers. Send *** back at the same place (the same node id, the same key) to keep the saved value; a *** with no saved value behind it is refused (MASKED_VALUE_UNKNOWN). Keep keys in saved credentials (credentialId) rather than in a step's text: text elsewhere in a step is answered as written.

Errors: 400 MISSING_FIELD, INVALID_FIELD, FIELD_TOO_LONG, INVALID_ID, INVALID_GRAPH, MASKED_VALUE_UNKNOWN; 404 PROJECT_NOT_FOUND; 403 AI_ORIGIN_WRITE (sent by the platform's own AI routes); 409 PLAN_LIMIT_REACHED (the plan's automations are used: limit, allowed).

Request body application/json

object

Responses

  • 200OK

Change an automation

PUT/api/external/v1/automations/{automationId}

Saves the automation with what you send and answers its definition; the app's own save, so the node timeouts are checked and a version is recorded when anything versioned changed.

Body (every field optional; one you leave out keeps its value): name (not blank, up to 255), description, iconKey, iconColor, projectId, defaultApplicationId (null clears these), enabled (switching it on lets its schedule, events and hosted webhook start it), integrationCredentialLinks (replaces the list), aiEditable, graph (replaces the whole graph - nodes and connections - so send it complete; *** keeps a saved secret) and baseVersion (the version you read: when the newest version is another one, nothing is saved and the answer is 409 VERSION_CONFLICT with currentVersion - checked before the save, not a lock).

The graph is {"nodes": [...], "connections": [...]} (optional at the top level besides: vars, varValues, promptFragments, viewport).

  • A node: id (text, unique in the graph), type (a node type of GET /automations/node-catalog: TRIGGER, API_CALL, AI_LLM_INFERENCE, CONDITIONAL, BROWSER_USE ...), label, x, y (its place in the editor) and data (its settings, as the catalog's configSchema for that type describes them).
  • A trigger is a node of type TRIGGER: data.triggerType MANUAL (Manual Launch - started by a test run or POST /automations/{automationId}/runs), API (Webhook / API Call - started by that route), SCHEDULE (data.schedule), EVENT (data.eventName, filters from GET /automations/event-fields), WEBHOOK (a hosted address: data.path, httpMethod, responseMode immediate or blocking, authMethod NONE, SECRET, OAUTH2 or API_KEY with authHeaderName + authToken for SECRET) or TOOL (data.toolName).
  • A connection: {"source": nodeId, "target": nodeId, "sourceHandle"?, "targetHandle"?}; branching nodes name their way out in sourceHandle (CONDITIONAL true/false, SWITCH its case values and default, loops body/done, error when a node follows its error path - the catalog's connectionHandles). Not edges.
  • Steps read what came before with {{...}}: {{automation.trigger.payload}}, {{automation.outputs.<nodeId>...}}, a started run's input fields as {{field}} (the catalog's variableScopes and eventPayloads list every path).
  • A node's data.timeoutMs, when set, is 1 to 300000.

Write-only values. Secrets are answered as ***: text under a key that reads as a secret (authorization, api key, token, secret, password, cookie, signature, credential - not an id), also inside a step's JSON text such as an HTTP step's headers. Send *** back at the same place (the same node id, the same key) to keep the saved value; a *** with no saved value behind it is refused (MASKED_VALUE_UNKNOWN). Keep keys in saved credentials (credentialId) rather than in a step's text: text elsewhere in a step is answered as written.

Errors: 404 AUTOMATION_NOT_FOUND, PROJECT_NOT_FOUND; 400 MISSING_FIELD (a blank name), INVALID_FIELD, FIELD_TOO_LONG, INVALID_ID, INVALID_GRAPH, MASKED_VALUE_UNKNOWN; 403 AI_ORIGIN_WRITE; 409 VERSION_CONFLICT.

Parameters

  • automationIdstring (uuid)pathRequired

Request body application/json

object

Responses

  • 200OK

Delete an automation

DELETE/api/external/v1/automations/{automationId}

Deletes the automation for good (204), as the app's delete does. Its schedule, events and hosted webhook no longer start it. Errors: 404 AUTOMATION_NOT_FOUND; 403 AI_ORIGIN_WRITE.

Parameters

  • automationIdstring (uuid)pathRequired

Responses

  • 200OK

Archive an automation

POST/api/external/v1/automations/{automationId}/archive

Archives the automation and answers it (the fields of GET /automations/{automationId}): it leaves the list unless includeArchived=true is asked. Archiving does not switch it off - its schedule, events and hosted webhook still start it; send enabled: false with PUT for that. Errors: 404 AUTOMATION_NOT_FOUND; 403 AI_ORIGIN_WRITE.

Parameters

  • automationIdstring (uuid)pathRequired

Responses

  • 200OK

Read an automation's definition

GET/api/external/v1/automations/{automationId}/definition

The automation's whole definition, to change it with PUT /automations/{automationId}: automation (its compact view), version (its newest version in the history: send it back as baseVersion to refuse a save over someone else's), aiEditable, createdByAi, defaultApplicationId, integrationCredentialLinks, graph (secrets masked) and maskedFields (where the masks are).

The graph is {"nodes": [...], "connections": [...]} (optional at the top level besides: vars, varValues, promptFragments, viewport).

  • A node: id (text, unique in the graph), type (a node type of GET /automations/node-catalog: TRIGGER, API_CALL, AI_LLM_INFERENCE, CONDITIONAL, BROWSER_USE ...), label, x, y (its place in the editor) and data (its settings, as the catalog's configSchema for that type describes them).
  • A trigger is a node of type TRIGGER: data.triggerType MANUAL (Manual Launch - started by a test run or POST /automations/{automationId}/runs), API (Webhook / API Call - started by that route), SCHEDULE (data.schedule), EVENT (data.eventName, filters from GET /automations/event-fields), WEBHOOK (a hosted address: data.path, httpMethod, responseMode immediate or blocking, authMethod NONE, SECRET, OAUTH2 or API_KEY with authHeaderName + authToken for SECRET) or TOOL (data.toolName).
  • A connection: {"source": nodeId, "target": nodeId, "sourceHandle"?, "targetHandle"?}; branching nodes name their way out in sourceHandle (CONDITIONAL true/false, SWITCH its case values and default, loops body/done, error when a node follows its error path - the catalog's connectionHandles). Not edges.
  • Steps read what came before with {{...}}: {{automation.trigger.payload}}, {{automation.outputs.<nodeId>...}}, a started run's input fields as {{field}} (the catalog's variableScopes and eventPayloads list every path).
  • A node's data.timeoutMs, when set, is 1 to 300000.

Write-only values. Secrets are answered as ***: text under a key that reads as a secret (authorization, api key, token, secret, password, cookie, signature, credential - not an id), also inside a step's JSON text such as an HTTP step's headers. Send *** back at the same place (the same node id, the same key) to keep the saved value; a *** with no saved value behind it is refused (MASKED_VALUE_UNKNOWN). Keep keys in saved credentials (credentialId) rather than in a step's text: text elsewhere in a step is answered as written.

Under the write permission: a definition holds what the person put in it. Errors: 404 AUTOMATION_NOT_FOUND.

Parameters

  • automationIdstring (uuid)pathRequired

Responses

  • 200OK

Duplicate an automation

POST/api/external/v1/automations/{automationId}/duplicate

Makes a copy (201) named " (Copy)" with the same description, icon, project, default application, credential links and graph, and answers its definition. It is one more automation against the plan's. The copy is switched on or off as the original is: a copy of a switched-on automation with a schedule or event trigger runs on its own from now on, as the original does - switch it off with PUT when that is not wanted. Its hosted-webhook triggers have new addresses (the automation id is part of them) and the same secrets.

Errors: 404 AUTOMATION_NOT_FOUND; 403 AI_ORIGIN_WRITE; 409 PLAN_LIMIT_REACHED.

Parameters

  • automationIdstring (uuid)pathRequired

Responses

  • 200OK

Unarchive an automation

POST/api/external/v1/automations/{automationId}/unarchive

Brings an archived automation back to the list and answers it. Errors: 404 AUTOMATION_NOT_FOUND; 403 AI_ORIGIN_WRITE.

Parameters

  • automationIdstring (uuid)pathRequired

Responses

  • 200OK

Read an automation's hosted webhooks

GET/api/external/v1/automations/{automationId}/webhook-triggers

The automation's hosted-webhook triggers (trigger type WEBHOOK) with what a caller needs: nodeId, label, url (the full address; null when the deployment names no public address - then path below this API's host), path, httpMethod (ANY or one method), responseMode (immediate: answered at once; blocking: answered by the automation's Respond to Webhook step), authMethod (NONE, SECRET, OAUTH2, API_KEY - as the address checks callers), publicAddress (anyone with the address can start the automation), authHeaderName and authToken (SECRET: the header and the value a caller sends), authOAuthClientId, authApiKeyId (which client or key is accepted; empty or ANY for any of yours) and authRequiredScope. automationEnabled: a switched-off automation's address answers 503.

The secret is shown in full: only under the write permission, as a key that may change the automation could set a secret of its own anyway. Errors: 404 AUTOMATION_NOT_FOUND; 403 AI_ORIGIN_WRITE (not to the platform's own AI routes). The answer is not kept in the API access log.

Parameters

  • automationIdstring (uuid)pathRequired

Responses

  • 200OK

Rotate a hosted webhook's secret

POST/api/external/v1/automations/{automationId}/webhook-triggers/{nodeId}/secret

Gives the hosted-webhook trigger a new shared secret (32 random bytes, URL-safe) and answers the trigger with it: from now on callers send it in the trigger's header, and the old one is refused. Saved with the app's own save (a new version in the history). A public trigger (NONE) gets its check switched on.

Body (optional): headerName - the header callers send it in (default: the trigger's own, else X-Webhook-Token).

Errors: 404 AUTOMATION_NOT_FOUND, WEBHOOK_TRIGGER_NOT_FOUND (no hosted-webhook trigger has that node id); 400 INVALID_HEADER_NAME; 409 WEBHOOK_AUTH_NOT_SECRET (the trigger checks callers with an OAuth client or an API key, which have no shared secret: change authMethod in the graph first); 403 AI_ORIGIN_WRITE.

Parameters

  • automationIdstring (uuid)pathRequired
  • nodeIdstringpathRequired

    The trigger's node id (`nodeId` of `GET .../webhook-triggers`).

Request body application/json

object

Responses

  • 200OK