Runs
List runs
GET /flows/{id}/runsReturns a paginated list of runs for the given flow.
Query parameters
| Param | Type | Default | Description |
|---|---|---|---|
status | string | - | Filter by status: pending, running, success, error, cancelled. |
per_page | integer | 20 | Items per page. |
page | integer | 1 | Page number. |
logs | 0 | 1 | 0 | Include console_logs in the response. |
code | 0 | 1 | 0 | Include code_snapshot in the response. |
Secret values are always masked with •••••••• in API responses.
Response 200
{
"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
| Field | Type | Description |
|---|---|---|
data | Run[] | Array of run objects. |
current_page | integer | Current page number. |
last_page | integer | Last page number. |
per_page | integer | Items per page. |
total | integer | Total number of runs. |
Search runs across flows
GET /runs/searchReturns a paginated list of runs visible to the authenticated user.
Query parameters
| Param | Type | Description |
|---|---|---|
workspace_id | string | Limit results to a workspace ID. |
flow_id | string | Limit results to a flow ID. |
flow_search | string | Search by run ID, flow name, or flow ID. |
search | string | Alias for flow_search. |
status | string | Filter by one run status. |
statuses[] | string[] | Filter by several run statuses. |
date_from | datetime | Earliest creation date. |
date_to | datetime | Latest creation date. |
triggered_by | string | Filter by triggering user ID (user_...). |
legend | string | Filter by run legend. |
duration_min_ms | integer | Minimum duration in milliseconds. |
duration_max_ms | integer | Maximum duration in milliseconds. |
meta_presence | any | none | Require metadata to be present or absent. Pro plan and above. |
meta_predicate | and | or | How multiple metadata filters are combined. Pro plan and above. |
per_page | integer | Items per page, up to 100. Default: 50. |
page | integer | Page number. |
logs | 0 | 1 | Include console logs. |
code | 0 | 1 | Include 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
GET /flows/{id}/runs/searchReturns a lightweight list of runs, suitable for autocomplete or search UIs.
Returns at most 50 runs.
Query parameters
| Param | Type | Description |
|---|---|---|
search | string | Search by run ID or status. |
status | string | Filter by status: pending, running, success, error, cancelled. |
Response 200
[
{
"id": 42,
"flow_id": "flow_k8Zt3xQ9mA2f",
"trigger_id": null,
"status": "success",
"legend": null,
"duration_ms": 12340,
"created_at": "2026-03-15T10:30:00Z"
}
]| Field | Type | Description |
|---|---|---|
id | integer | Run ID. |
flow_id | string | Parent flow ID. |
trigger_id | string | null | Trigger ID when the run came from a trigger. |
status | string | Run status. |
legend | string | null | Run legend. |
duration_ms | integer | null | Run duration in milliseconds. |
created_at | datetime | Creation timestamp. |
Get a run
GET /flows/{id}/runs/{run}Returns the full details of a specific run.
Query parameters
| Param | Type | Default | Description |
|---|---|---|---|
logs | 0 | 1 | 0 | Include console_logs in the response. |
code | 0 | 1 | 0 | Include code_snapshot in the response. |
Response 200
{
"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
| Field | Type | Description |
|---|---|---|
id | integer | Run ID. |
flow_id | string | Parent flow ID. |
status | string | pending, running, success, error, or cancelled. |
output | object | null | Flow output data. |
error_message | string | null | Error message if the run failed. |
duration_ms | integer | null | Run duration in milliseconds. |
console_logs | array | Console log entries. Present only when logs=1. |
code_snapshot | string | Code at run time. Present only when code=1. |
waiting_for_human_validation | boolean | Whether the run is paused by $waitHumanValidation(). |
human_validation_wait_id | string | null | UUID to pass as wait_id when continuing the run. |
artifacts | object | array | Download, screenshot, and recording links for the run. It is an empty array when the recording and artifact entitlement is unavailable. |
created_at | datetime | Creation timestamp. |
updated_at | datetime | Last update timestamp. |
Continue a waiting run
POST /flows/{id}/runs/{run}/continueContinues a running flow paused by $waitHumanValidation().
Request body
| Field | Type | Description |
|---|---|---|
wait_id | string (uuid), required | The pending validation ID, returned as human_validation_wait_id by the get run endpoint. |
{
"wait_id": "0d4f6f0e-1d0a-4b9e-8a1e-6b8a1a2b3c4d"
}Response 200
{
"run_id": 42,
"status": "running",
"continue_requested": true
}Errors
| Code | Description |
|---|---|
403 | API key lacks permission for the flow. |
404 | Flow or run not found. |
409 | Run is not active or is not waiting for this validation request. |
422 | Missing or invalid wait_id. |
Get run result
GET /flows/{id}/runs/{run}/resultReturns only the output, status and timing of a run - a lighter alternative to the full run endpoint.
Response 200
{
"run_id": 42,
"status": "success",
"output": {
"status": "success",
"message": "Done",
"count": 5
},
"error_message": null,
"duration_ms": 12340
}| Field | Type | Description |
|---|---|---|
run_id | integer | Run ID. |
status | string | Run status. |
output | object | null | Flow output data. |
error_message | string | null | Error message if the run failed. |
duration_ms | integer | null | Run duration in milliseconds. |
