[Go to site: main page, start]

Skip to content

Runs ​

List runs ​

http
GET /flows/{id}/runs

Returns a paginated list of runs for the given flow.

Query parameters ​

ParamTypeDefaultDescription
statusstring-Filter by status: pending, running, success, error, cancelled.
per_pageinteger20Items per page.
pageinteger1Page number.
logs0 | 10Include console_logs in the response.
code0 | 10Include code_snapshot in the response.

Secret values are always masked with •••••••• in API responses.

Response 200 ​

json
{
  "data": [
    {
      "id": 42,
      "flow_id": "flow_k8Zt3xQ9mA2f",
      "status": "success",
      "output": { "status": "success", "message": "Done" },
      "error_message": null,
      "duration_ms": 12340,
      "created_at": "2026-03-15T10:30:00Z",
      "updated_at": "2026-03-15T10:30:12Z"
    }
  ],
  "current_page": 1,
  "last_page": 3,
  "per_page": 20,
  "total": 58
}

Pagination ​

FieldTypeDescription
dataRun[]Array of run objects.
current_pageintegerCurrent page number.
last_pageintegerLast page number.
per_pageintegerItems per page.
totalintegerTotal number of runs.

Search runs across flows ​

http
GET /runs/search

Returns a paginated list of runs visible to the authenticated user.

Query parameters ​

ParamTypeDescription
workspace_idstringLimit results to a workspace ID.
flow_idstringLimit results to a flow ID.
flow_searchstringSearch by run ID, flow name, or flow ID.
searchstringAlias for flow_search.
statusstringFilter by one run status.
statuses[]string[]Filter by several run statuses.
date_fromdatetimeEarliest creation date.
date_todatetimeLatest creation date.
triggered_bystringFilter by triggering user ID (user_...).
legendstringFilter by run legend.
duration_min_msintegerMinimum duration in milliseconds.
duration_max_msintegerMaximum duration in milliseconds.
meta_presenceany | noneRequire metadata to be present or absent. Pro plan and above.
meta_predicateand | orHow multiple metadata filters are combined. Pro plan and above.
per_pageintegerItems per page, up to 100. Default: 50.
pageintegerPage number.
logs0 | 1Include console logs.
code0 | 1Include the code snapshot.

Metadata filters use meta_filters[index][key], meta_filters[index][operator], and meta_filters[index][value]. Supported operators are contains, equals, not_equals, starts_with, ends_with, gt, gte, lt, lte, and exists.

Metadata search requires the Search Runs by Metadata entitlement, available from the Pro plan. When the entitlement is disabled, metadata parameters are ignored.


Search runs for a flow ​

http
GET /flows/{id}/runs/search

Returns a lightweight list of runs, suitable for autocomplete or search UIs.

Returns at most 50 runs.

Query parameters ​

ParamTypeDescription
searchstringSearch by run ID or status.
statusstringFilter by status: pending, running, success, error, cancelled.

Response 200 ​

json
[
  {
    "id": 42,
    "flow_id": "flow_k8Zt3xQ9mA2f",
    "trigger_id": null,
    "status": "success",
    "legend": null,
    "duration_ms": 12340,
    "created_at": "2026-03-15T10:30:00Z"
  }
]
FieldTypeDescription
idintegerRun ID.
flow_idstringParent flow ID.
trigger_idstring | nullTrigger ID when the run came from a trigger.
statusstringRun status.
legendstring | nullRun legend.
duration_msinteger | nullRun duration in milliseconds.
created_atdatetimeCreation timestamp.

Get a run ​

http
GET /flows/{id}/runs/{run}

Returns the full details of a specific run.

Query parameters ​

ParamTypeDefaultDescription
logs0 | 10Include console_logs in the response.
code0 | 10Include code_snapshot in the response.

Response 200 ​

json
{
  "id": 42,
  "flow_id": "flow_k8Zt3xQ9mA2f",
  "status": "success",
  "output": {
    "status": "success",
    "message": "Processed 3 invoices",
    "invoiceIds": [1, 2, 3]
  },
  "error_message": null,
  "duration_ms": 12340,
  "created_at": "2026-03-15T10:30:00Z",
  "updated_at": "2026-03-15T10:30:12Z",
  "waiting_for_human_validation": false,
  "human_validation_wait_id": null,
  "artifacts": {
    "downloads": [],
    "screenshots": [],
    "recording": null
  }
}

Run object ​

FieldTypeDescription
idintegerRun ID.
flow_idstringParent flow ID.
statusstringpending, running, success, error, or cancelled.
outputobject | nullFlow output data.
error_messagestring | nullError message if the run failed.
duration_msinteger | nullRun duration in milliseconds.
console_logsarrayConsole log entries. Present only when logs=1.
code_snapshotstringCode at run time. Present only when code=1.
waiting_for_human_validationbooleanWhether the run is paused by $waitHumanValidation().
human_validation_wait_idstring | nullUUID to pass as wait_id when continuing the run.
artifactsobject | arrayDownload, screenshot, and recording links for the run. It is an empty array when the recording and artifact entitlement is unavailable.
created_atdatetimeCreation timestamp.
updated_atdatetimeLast update timestamp.

Continue a waiting run ​

http
POST /flows/{id}/runs/{run}/continue

Continues a running flow paused by $waitHumanValidation().

Request body ​

FieldTypeDescription
wait_idstring (uuid), requiredThe pending validation ID, returned as human_validation_wait_id by the get run endpoint.
json
{
  "wait_id": "0d4f6f0e-1d0a-4b9e-8a1e-6b8a1a2b3c4d"
}

Response 200 ​

json
{
  "run_id": 42,
  "status": "running",
  "continue_requested": true
}

Errors ​

CodeDescription
403API key lacks permission for the flow.
404Flow or run not found.
409Run is not active or is not waiting for this validation request.
422Missing or invalid wait_id.

Get run result ​

http
GET /flows/{id}/runs/{run}/result

Returns only the output, status and timing of a run - a lighter alternative to the full run endpoint.

Response 200 ​

json
{
  "run_id": 42,
  "status": "success",
  "output": {
    "status": "success",
    "message": "Done",
    "count": 5
  },
  "error_message": null,
  "duration_ms": 12340
}
FieldTypeDescription
run_idintegerRun ID.
statusstringRun status.
outputobject | nullFlow output data.
error_messagestring | nullError message if the run failed.
duration_msinteger | nullRun duration in milliseconds.