List Deployment Runs
Paginated list of execution records for a specified Deployment.
Prerequisites
Endpoint and authentication configured. For details, see API overview and authentication.
Endpoint
/deployments/{deployment_id}/runsPath parameters
deployment_idstringRequiredDeployment ID
Query parameters
limitintegerOptionalPage size; max 100, default 20
pagestringOptionalPagination cursor
Request example
curl "$AGENTSTUDIO_URL/deployments/depl_xxx/runs?limit=20" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response fields
dataarray<object>Array of Deployment Run objects
data[].idstringDeployment Run ID
data[].typestringAlways deployment_run
data[].deployment_idstringAssociated Deployment ID
data[].agentobjectAssociated Agent; contains id and version
data[].session_idstring | nullSession ID; null until the async session creation completes
data[].trigger_sourcestringTrigger source: manual or schedule
data[].statusstringRun status: running, succeeded, or failed
data[].errorobject | nullError info; returned only when the run fails
data[].started_atstringRun start time, ISO 8601
data[].finished_atstring | nullRun end time, ISO 8601; null while running
data[].request_idstringUnique request identifier
next_pagestring | nullNext page cursor; null when there is no more data
Response example
The response contains data (an array of Deployment Run objects) and next_page (the cursor for the next page; null when there is no more data).
{
"data": [
{
"id": "drun_xxx",
"type": "deployment_run",
"deployment_id": "depl_xxx",
"agent": {
"id": "agent_xxx",
"version": 13
},
"session_id": "sesn_xxx",
"trigger_source": "schedule",
"status": "succeeded",
"error": null,
"started_at": "2026-07-28T01:00:00Z",
"finished_at": "2026-07-28T01:05:00Z",
"request_id": "req_xxx"
}
],
"next_page": null
}
Error codes
| Status code | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |