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_id string (必选)
Deployment ID
Query parameterslimitinteger (可选)Page size; max 100, default 20page string (可选)Pagination cursor | Request example |
Response fieldsdataarray<object>Array of Deployment Run objectsdata[].id stringDeployment Run IDdata[].type stringAlways deployment_rundata[].deployment_id stringAssociated Deployment IDdata[].agent objectAssociated Agent; contains id and versiondata[].session_id string | nullSession ID; null until the async session creation completesdata[].trigger_source stringTrigger source: manual or scheduledata[].status stringRun status: running, succeeded, or faileddata[].error object | nullError info; returned only when the run failsdata[].started_at stringRun start time, ISO 8601data[].finished_at string | nullRun end time, ISO 8601; null while runningdata[].request_id stringUnique request identifiernext_page string | nullNext page cursor; null when there is no more data | ResponseThe response containsdata (an array of Deployment Run objects) and next_page (the cursor for the next page; null when there is no more data). |
Error codes
| Status code | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |