Skip to main content

List Deployment Runs

Paginated list of execution records for a specified Deployment.

Prerequisites

Endpoint and authentication configured. For details, see Overview and authentication.

Endpoint

GET /deployments/{deployment_id}/runs

Path parameters

FieldRequiredTypeDescription
deployment_idYesstringDeployment ID

Query parameters

FieldRequiredTypeDescription
limitNointegerPage size; default 20, max 100
pageNostringPagination cursor; take from the next_page value of the previous response

Request example

curl -X GET "$AGENTSTUDIO_URL/deployments/depl_xxx/runs?limit=20" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response example

{
  "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
}

Response fields

FieldTypeDescription
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

Error codes

HTTP statusError codeDescription
400InvalidParameterRequired parameter missing or invalid
401InvalidApiKeyInvalid API key provided
Flow Agent API
Sandbox API
RAG API
Long-term Memory
ParseX API
Security API
Framework Integration