API reference

Automations

The workspace's Automations: list them with their triggers, start a run with the input you send (for an automation with a "Webhook / API Call" or "Manual Launch" trigger), and follow each run - its status, its steps and the outputs of its nodes. Runs started here count, queue and bill exactly as runs started in the app. 6 endpoints. Add your API key in the authentication panel to send test requests from this page.

List automations

GET/api/external/v1/automations

Your automations by name, a page at a time. Each has id, name, description, iconKey, iconColor, enabled, archived, favorite, projectId, createdAt, updatedAt, its triggers (each id, label, triggerType - MANUAL, SCHEDULE, API, WEBHOOK, TOOL or EVENT - acceptsApiRuns, and its settings: the event, schedule, tool name or hosted-webhook path and method it is set to), acceptsApiRuns (it can be started with POST /automations/{automationId}/runs) and apiTriggerType (the trigger such a run enters at).

Filters: q (words in the name or description), includeArchived (archived ones are left out otherwise), acceptsApiRuns=true (only those you can start here). Paging: page (from 0) and size (1 to 100, default 20); the answer carries page, size, totalElements, totalPages.

Parameters

  • qstringquery

    Only automations whose name or description contains this.

  • includeArchivedbooleanquery

    Also list archived automations.

  • acceptsApiRunsbooleanquery

    Only automations a run can be started for here.

  • pageinteger (int32)query
  • sizeinteger (int32)query

Responses

  • 200OK

Read an automation

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

One automation (the fields of GET /automations).

What a run started here receives: the input object you send becomes the run's variables - each of its top-level fields is a variable the automation reads as {{field}} - and the run enters at the trigger named by apiTriggerType. Automations declare no input schema of their own: agree the fields with whoever built it. The files its runs produced are GET /automations/{automationId}/artifacts.

Errors: 404 AUTOMATION_NOT_FOUND when it is not one of yours.

Parameters

  • automationIdstring (uuid)pathRequired

Responses

  • 200OK

List an automation's runs

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

The automation's runs, newest first, as list rows: id, automationId, status, triggerType, runType (TEST or AUTOMATIC), errorMessage (its start), currentNodeId, traceLength (how many steps ran), hasVariables, automationVersionAt, startedAt, finishedAt, createdAt, updatedAt. Open one with GET /automations/runs/{runId} for its steps and outputs.

Paging: page (from 0), size (1 to 100, default 20). Errors: 404 AUTOMATION_NOT_FOUND.

Parameters

  • automationIdstring (uuid)pathRequired
  • pageinteger (int32)query
  • sizeinteger (int32)query

Responses

  • 200OK

Start an automation run

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

Queues a run of the automation with your input and answers it at once (201) with status PENDING; follow it with GET /automations/runs/{runId} until it is COMPLETED or FAILED (WAITING_FOR_CALLBACK while a step waits on an outside callback).

Body: input (an object, optional): its top-level fields become the run's variables. The run enters at the automation's "Webhook / API Call" trigger (trigger type API), else at its "Manual Launch" trigger (MANUAL). It is the same run as one started in the app: it counts towards the plan's automation runs a day, waits in the queue when the account's parallel runs are taken, and is billed for what its steps use.

Errors: 404 AUTOMATION_NOT_FOUND; 400 INVALID_INPUT when input is not an object; 409 AUTOMATION_DISABLED (switch it on in the app), NO_RUNNABLE_TRIGGER (it has no API or Manual Launch trigger: only a schedule, a system event, a hosted webhook or a tool call starts it; triggerTypes lists the ones it has), RUN_REFUSED (refused right now: the plan's runs a day are used, the account's balance blocks usage, the queue is full, a cooldown or the run rate limit - the message says which).

Parameters

  • automationIdstring (uuid)pathRequired

Request body application/json

object

Responses

  • 200OK

List all automation runs

GET/api/external/v1/automations/runs

Every run of your automations, newest first (the rows of GET /automations/{automationId}/runs).

Paging: page (from 0), size (1 to 100, default 20).

Parameters

  • pageinteger (int32)query
  • sizeinteger (int32)query

Responses

  • 200OK

Read an automation run

GET/api/external/v1/automations/runs/{runId}

One run: id, automationId, status (PENDING, RUNNING, WAITING_FOR_CALLBACK, COMPLETED, FAILED), triggerType, runType, errorMessage, currentNodeId, waitingOnRunId (a sub-automation run it waits for), createdAt, startedAt, finishedAt, updatedAt, steps (one entry per node run, in order: nodeId, type, status, its input and output) and outputs (each node's output by node id - what the automation itself reads as automation.outputs).

Errors: 404 RUN_NOT_FOUND when it is not a run of yours.

Parameters

  • runIdstring (uuid)pathRequired

Responses

  • 200OK