Get Deployment

Updated at:

Retrieves the details of a single Deployment by ID.

Prerequisites

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

Endpoint

GET/deployments/{deployment_id}

Path parameters

deployment_idstringRequired

Deployment ID

Request example

curl "$AGENTSTUDIO_URL/deployments/depl_xxx" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

idstring

Deployment ID

typestring

Fixed value deployment

namestring

Deployment name

descriptionstring

Description of the deployment purpose

agentobject

Associated Agent

environment_idstring

Associated Environment ID

scheduleobject

Schedule configuration; omit for manual trigger

initial_eventsarray<object>

Initial events sent to the Agent when triggered, 1-50 items

resourcesarray<object>

Mounted file resources

vault_idsarray<string>

Associated Vault IDs

metadataobject

Business metadata

statusstring

Resource status

paused_reasonobject | null

Pause reason; returned only when the status is paused

archived_atstring | null

Archive time; null if not archived

created_atstring

Creation time, ISO 8601

updated_atstring

Last update time, ISO 8601

request_idstring

Unique identifier of this request; include it when troubleshooting

Response example

{
  "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": [
    {
      "type": "message",
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Summarize order data from yesterday"
        }
      ]
    }
  ],
  "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"
}

Error codes

Status codeError codeDescription
400InvalidParameterRequired parameter missing or invalid.
401InvalidApiKeyInvalid API-key provided.
404DEPLOYMENT_NOT_FOUNDDeployment not found.