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 API overview and authentication.

Endpoint

GET /deployments

Query parameters

agent_id string (可选)Filter by Agent IDkeyword string (可选)Fuzzy search by ID or namestatus string (可选)Filter by status: active or pausedinclude_archived boolean (可选)Whether to include archived Deployments; default falselimit integer (可选)Number of items per page; max 100; default 20page string (可选)Pagination cursorcreated_at[gte] string (可选)Created-at lower bound, RFC 3339created_at[lte] string (可选)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

data array<object>Array of Deployment objectsdata[].id stringDeployment IDdata[].type stringAlways deploymentdata[].name stringDeployment namedata[].description stringDeployment purpose descriptiondata[].agent objectSnapshot of the associated Agent at the locked versiondata[].environment_id stringAssociated Environment IDdata[].schedule objectSchedule trigger configurationdata[].initial_events array<object>Initial events sent to the Agent on triggerdata[].resources array<object>Mounted file resourcesdata[].vault_ids array<string>Associated Vault ID listdata[].metadata objectCustom business key-value pairsdata[].status stringDeployment status: active or pauseddata[].paused_reason object | nullPause reason; returned only when the status is pauseddata[].archived_at string | nullArchive timestamp; null if not archiveddata[].created_at stringCreation time, ISO 8601data[].updated_at stringLast update time, ISO 8601data[].request_id stringUnique request identifiernext_page string | nullNext page cursor; null when there is no more data

Response

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.