List Deployment Runs

Updated at:

Paginated list of execution records for a specified Deployment.

Prerequisites

Endpoint and authentication configured. For details, see API overview and authentication.

Endpoint

GET/deployments/{deployment_id}/runs

Path parameters

deployment_idstringRequired

Deployment ID

Query parameters

limitintegerOptional

Page size; max 100, default 20

pagestringOptional

Pagination 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[].idstring

Deployment Run ID

data[].typestring

Always deployment_run

data[].deployment_idstring

Associated Deployment ID

data[].agentobject

Associated Agent; contains id and version

data[].session_idstring | null

Session ID; null until the async session creation completes

data[].trigger_sourcestring

Trigger source: manual or schedule

data[].statusstring

Run status: running, succeeded, or failed

data[].errorobject | null

Error info; returned only when the run fails

data[].started_atstring

Run start time, ISO 8601

data[].finished_atstring | null

Run end time, ISO 8601; null while running

data[].request_idstring

Unique request identifier

next_pagestring | null

Next 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 codeError codeDescription
400InvalidParameterRequired parameter missing or invalid.
401InvalidApiKeyInvalid API-key provided.