List Deployments

Updated at:

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

Prerequisites

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

Endpoint

GET/deployments

Query parameters

agent_idstringOptional

Filter by Agent ID

keywordstringOptional

Fuzzy search by ID or name

statusstringOptional

Filter by status: active or paused

include_archivedbooleanOptional

Whether to include archived Deployments; default false

limitintegerOptional

Number of items per page; max 100; default 20

pagestringOptional

Pagination cursor

created_at[gte]stringOptional

Created-at lower bound, RFC 3339

created_at[lte]stringOptional

Created-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[].idstring

Deployment ID

data[].typestring

Always deployment

data[].namestring

Deployment name

data[].descriptionstring

Deployment purpose description

data[].agentobject

Snapshot of the associated Agent at the locked version

data[].environment_idstring

Associated Environment ID

data[].scheduleobject

Schedule 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[].metadataobject

Custom business key-value pairs

data[].statusstring

Deployment status: active or paused

data[].paused_reasonobject | null

Pause reason; returned only when the status is paused

data[].archived_atstring | null

Archive timestamp; null if not archived

data[].created_atstring

Creation time, ISO 8601

data[].updated_atstring

Last update time, ISO 8601

data[].request_idstring

Unique request identifier

next_pagestring | null

Next 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 statusError codeDescription
400InvalidParameterRequired parameter missing or invalid.
401InvalidApiKeyInvalid API key provided.