List workflow runs
Runs, newest first. Sorts by created_at, started_at, state, trigger_type, total_steps, duration and workflow (its name); q searches workflow names or finds a pasted run ID. Filters, each repeatable: workflow_id, state, trigger_type, alias (live, staging, draft), is_test (true, false) and created_by, who started it (usr_… or sa_…; a trigger or a schedule is an automation and has none), plus the created time range; facets count each of them. Each run names who started it (created_by).
Query parameters
workflow_idstring[]workspace_idstring[]statestring[]trigger_typestring[]aliasstring[]is_teststring[]created_bystring[]limitintegerRows per page, 1 to 200.
Default50at least 1at most 200cursorstringqstringSearch: rows whose name (or the list's other searchable text) contains this, any case.
at most 200 charactersorderstringSort field; a leading
-sorts down. Each list names the fields it sorts by.at most 64 charactersmatches ^-?[a-z_]+$includestring[]total_count(counted up to 10,000) andfacets(a count per filter value).One oftotal_countfacetscreated_afterstringOnly rows created at or after this time (RFC 3339).
date-timecreated_beforestringOnly rows created at or before this time (RFC 3339).
date-timeupdated_afterstringOnly rows last changed at or after this time (RFC 3339).
date-timeupdated_beforestringOnly rows last changed at or before this time (RFC 3339).
date-time
Response200
objectstringlistdataWorkflowRun[]24 fields
idstringobjectstringworkflow_runaliasstringcancel_requestedbooleancreated_atstring or nulldraft_revisioninteger or nullended_atstring or nullerror_classstring or nullerror_codestring or nullis_testbooleanrow_versionintegerstarted_atstring or nullstatestringOne ofqueuedrunningwaiting_approvalwaiting_inputwaiting_eventwaiting_timerblocked_on_keyblocked_on_connectioncompletedfailedcancelledstopped_by_limitfailed_to_startstate_reasonstring or nulltotal_stepsintegertrigger_typestringupdated_atstring or nullversioninteger or nullworkflow_idstringworkflow_version_idstring or nullworkspace_idstringcreated_byActorRef or nullWho created or last changed something, resolved to a name for display.
system,workload(an automation) andend_user(a widget visitor) have no ID or name: the console words them.nameis null for someone the directory no longer knows.idis what the lists'created_by/updated_byfilters take.avatar_versionis set for a person with a photo: it is atGET /v1/members/{id}/avatar?v=<avatar_version>while they are a member.5 fields
idstring or nullkindstringOne ofuserapi_keyservice_accountworkloadend_usersystemnamestring or nullavatar_versionstring or nullemailstring or null
stepsWorkflowStep[] or null15 fields
idstringattemptsintegerdata_classstringerror_classstring or nullerror_codestring or nullfinished_atstring or nulliterationstringnode_idstringnode_typestringportstring or nullstarted_atstring or nullstatusstringOne ofrunningwaitingcompletedfailedcancelledreusedmanualchild_run_idstring or nullchild_run_kindstring or nullcost_micro_usdintegerDefault0
total_cost_micro_usdintegerDefault0
has_morebooleannext_cursorstring or nullfacetsmap<string, map<string, integer>> or nullpeoplemap<string, ActorRef> or null5 fields
idstring or nullkindstringOne ofuserapi_keyservice_accountworkloadend_usersystemnamestring or nullavatar_versionstring or nullemailstring or null
total_countinteger or nulltotal_count_exactboolean or null
Status codes
- 200Successful Response
- 422The request is not valid:
errors[]names each field. - 4XXThe request was refused: the problem says why.
- 5XXThe API could not answer: the problem says why.
curl "https://api.mydeepagents.com/v1/workflow_runs?limit=20" \
-H "Authorization: Bearer $MDA_API_KEY"{
"object": "list",
"data": [
{
"id": "wfr_01jcvk7x45pq07bh867msccyhv",
"object": "workflow_run",
"alias": "live",
"cancel_requested": true,
"created_at": "2026-11-10T09:30:00.000Z",
"created_by": {
"kind": "user",
"id": "usr_01jcf1j9wjxfrnhqda3mq7ejxn",
"name": "Ada Lovelace",
"email": "ada@example.com"
},
"draft_revision": 2,
"ended_at": null,
"error_class": "error class",
"error_code": null,
"is_test": false,
"row_version": 4,
"started_at": "2026-11-10T09:30:00.000Z",
"state": "queued",
"state_reason": null,
"steps": [
{
"id": "id",
"attempts": 2,
"child_run_id": "run_01jcr77659p6hws1zjqkthay73",
"child_run_kind": "child run kind",
"cost_micro_usd": 0,
"data_class": "data class",
"error_class": "error class",
"error_code": null,
"finished_at": "2026-11-10T09:30:00.000Z",
"iteration": "iteration",
"node_id": "node id",
"node_type": "node type",
"port": "port",
"started_at": "2026-11-10T09:30:00.000Z",
"status": "running"
}
],
"total_cost_micro_usd": 0,
"total_steps": 2,
"trigger_type": "trigger type",
"updated_at": "2026-11-10T09:30:00.000Z",
"version": 3,
"workflow_id": "wf_01jctgae7hqqg3qxjfrgs9t89k",
"workflow_version_id": "wfv_01jcmxemhpq07bh8677tfsgx59",
"workspace_id": "ws_01jccj30nr8ad7mx1yc5v9zx3h"
}
],
"has_more": false,
"next_cursor": null,
"total_count": 1
}