Skip to main content

Run Deployment

Manually triggers a single Deployment execution. The response returns a Deployment Run object that tracks the execution lifecycle.

Prerequisites

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

Endpoint

POST /deployments/{deployment_id}/run

Path parameters

deployment_id string (必选)Deployment ID

Request example

curl -X POST "$AGENTSTUDIO_URL/deployments/depl_xxx/run" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

id stringDeployment Run IDtype stringFixed value deployment_rundeployment_id string—agent object—session_id string | nullnull until the asynchronous session creation completestrigger_source string—status string—error object | nullError information; returned only when the run failsstarted_at stringISO 8601 timestampfinished_at string | null—request_id stringUnique identifier of this request; include it when troubleshooting

Response

{
  "id": "drun_xxx",
  "type": "deployment_run",
  "deployment_id": "depl_xxx",
  "agent": {
    "id": "agent_xxx",
    "version": 13
  },
  "session_id": null,
  "trigger_source": "manual",
  "status": "running",
  "error": null,
  "started_at": "2026-07-28T02:00:00Z",
  "finished_at": null,
  "request_id": "req_xxx"
}

Error codes

HTTP statusError codeDescription
400InvalidParameterRequired parameter missing or invalid.
401InvalidApiKeyInvalid API-key provided.
409DEPLOYMENT_TRIGGER_CONFLICTConcurrent trigger conflict.