List Deployments
Paginated list of Deployments. Supports filtering by Agent, status, and keyword.
Prerequisites
Endpoint and authentication configured. For details, see API overview and authentication.
Endpoint
/deploymentsQuery parameters
agent_idstringOptionalFilter by Agent ID
keywordstringOptionalFuzzy search by ID or name
statusstringOptionalFilter by status: active or paused
include_archivedbooleanOptionalWhether to include archived Deployments; default false
limitintegerOptionalNumber of items per page; max 100; default 20
pagestringOptionalPagination cursor
created_at[gte]stringOptionalCreated-at lower bound, RFC 3339
created_at[lte]stringOptionalCreated-at upper bound, RFC 3339
Request example
curl "$AGENTSTUDIO_URL/deployments?agent_id=agent_xxx&keyword=data&status=active&include_archived=true&limit=20" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response fields
dataarray<object>Array of Deployment objects
data[].idstringDeployment ID
data[].typestringAlways deployment
data[].namestringDeployment name
data[].descriptionstringDeployment purpose description
data[].agentobjectSnapshot of the associated Agent at the locked version
data[].environment_idstringAssociated Environment ID
data[].scheduleobjectSchedule trigger configuration
data[].initial_eventsarray<object>Initial events sent to the Agent on trigger
data[].resourcesarray<object>Mounted file resources
data[].vault_idsarray<string>Associated Vault ID list
data[].metadataobjectCustom business key-value pairs
data[].statusstringDeployment status: active or paused
data[].paused_reasonobject | nullPause reason; returned only when the status is paused
data[].archived_atstring | nullArchive timestamp; null if not archived
data[].created_atstringCreation time, ISO 8601
data[].updated_atstringLast update time, ISO 8601
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 objects) and next_page (the next-page cursor; null when there is no more data).
{
"data": [
{
"id": "depl_xxx",
"type": "deployment",
"name": "Daily order summary",
"status": "active",
"agent": {
"id": "agent_xxx",
"version": 12
},
"environment_id": "env_xxx",
"schedule": {
"type": "cron",
"expression": "0 9 * * 1-5",
"timezone": "Asia/Shanghai",
"last_run_at": null,
"next_run_at": "2026-07-28T01:00:00Z"
},
"initial_events": [],
"resources": [],
"vault_ids": [],
"metadata": {},
"paused_reason": null,
"archived_at": null,
"created_at": "2026-07-28T01:00:00Z",
"updated_at": "2026-07-28T01:00:00Z",
"request_id": "req_xxx"
}
],
"next_page": null
}
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API key provided. |