List runs
Agent runs, newest first: IDs, states, times, cost and who started each one, never content. The console's home page reads them for its charts. parent_run_id lists the sub-agent runs one run started.
Query parameters
agent_idstringworkspace_idstringstatestringlimitintegerDefault50at least 1at most 200cursorstringparent_run_idstring
Response200
objectstringlistdataRun[]26 fields
idstringobjectstringrunagent_idstring or nullagent_version_idstring or nullcreated_atstring or nulldraft_revisioninteger or nullended_atstring or nullfinish_reasonstring or nullOne ofend_turnrefusallimiterrorcancelledis_testbooleanmodel_requestedstringprofilestringOne ofstandardprivacyhipaarow_versionintegerstarted_atstring or nullstatestringOne ofqueuedrunningwaiting_approvalwaiting_inputwaiting_eventwaiting_timerblocked_on_keyblocked_on_connectioncompletedfailedcancelledstopped_by_limitfailed_to_startstate_reasonstring or nulltriggerstringOne ofwidgetconsoleapiworkflowagentevala2amcpchatupdated_atstring or nullworkspace_idstringaliasstring or nullcost_micro_usdintegerDefault0created_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
depthintegerDefault0model_effectivestring or nullparent_run_idstring or nullroot_run_idstring or nullsteps_usedintegerDefault0
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/runs?limit=20" \
-H "Authorization: Bearer $MDA_API_KEY"{
"object": "list",
"data": [
{
"id": "run_01jcr77659p6hws1zjqkthay73",
"object": "run",
"agent_id": "agt_01jctdbahw9btk5p831xs974yq",
"agent_version_id": "agv_01jc7jt62eapjyt621bszf6wrs",
"alias": "live",
"cost_micro_usd": 0,
"created_at": "2026-11-10T09:30:00.000Z",
"created_by": {
"kind": "user",
"id": "usr_01jcf1j9wjxfrnhqda3mq7ejxn",
"name": "Ada Lovelace",
"email": "ada@example.com"
},
"depth": 0,
"draft_revision": 2,
"ended_at": null,
"finish_reason": null,
"is_test": false,
"model_effective": "claude-sonnet-5-5",
"model_requested": "claude-sonnet-5-5",
"parent_run_id": null,
"profile": "standard",
"root_run_id": "run_01jcr77659p6hws1zjqkthay73",
"row_version": 4,
"started_at": "2026-11-10T09:30:00.000Z",
"state": "queued",
"state_reason": null,
"steps_used": 0,
"trigger": "api",
"updated_at": "2026-11-10T09:30:00.000Z",
"workspace_id": "ws_01jccj30nr8ad7mx1yc5v9zx3h"
}
],
"has_more": false,
"next_cursor": null,
"total_count": 1
}