---
title: "List deployments for an environment"
method: GET
path: "/v1/agents/{agentId}/deployments"
tags: ["Deployments"]
---

# List deployments for an environment

`GET /v1/agents/{agentId}/deployments`

## Query parameters

- `environment` 'sandbox' | 'pre-release' | 'live', required
- `limit` integer

## Response `200`

Successful response

- GetDeploymentsResponse — Deployments for the requested environment, ordered newest first.
  - `deployments` DeploymentResponse[], required
    - `id` string, required — Unique deployment identifier
    - `accountId` string, required — Account this deployment belongs to
    - `agentId` string, required — Agent (project) this deployment belongs to
    - `environment` string, required — Environment (sandbox, pre-release, live)
    - `artifactVersion` string, required — Artifact version reference
    - `version` string, required — Version hash linking deployments across environments
    - `createdBy` string, required — Email of user who created the deployment
    - `createdAt` string, required — ISO 8601 timestamp of when the deployment was created
    - `metadata` object — Deployment metadata (e.g. deployment_message)

## Other responses

- `400` — Validation error
- `401` — Unauthorized – missing or invalid API key
- `403` — Forbidden – insufficient permissions

---

[API](https://skmtc.net/poly/apis/polyai-agents-api.md) · [All operations](https://skmtc.net/poly/apis/polyai-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poly/polyai-agents-api/revisions/76f3c606e395/schema)
