Skip to main content

List Deployments

Paginated list of Deployments. Supports filtering by Agent, status, and keyword.

Prerequisites

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

Endpoint

GET /deployments

Query parameters

FieldRequiredTypeDescription
agent_idNostringFilter by Agent ID
keywordNostringFuzzy search by ID or name
statusNostringFilter by status: active or paused
include_archivedNobooleanWhether to include archived Deployments; default false
limitNointegerItems per page; default 20, max 100
pageNostringPagination cursor; take from the next_page value of the previous response
created_at[gte]NostringCreated-at lower bound, RFC 3339
created_at[lte]NostringCreated-at upper bound, RFC 3339

Request example

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

Response example

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

Response fields

FieldTypeDescription
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 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

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