Skip to main content
GET
List Agent Deployments

Overview

Every publish, promote, and rollback appends a deployment to the target environment’s history. A promote with version_id that moves staging also appends a staging row. This endpoint returns that history for one environment, newest first, with the latest check run recorded for each deployed version. Use is_rollback_eligible to find valid targets for Roll Back Agent. Nothing is ever deployed to dev, so env=dev returns an empty array. This endpoint does not accept restricted API keys; they receive 403 INSUFFICIENT_SCOPE.

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
The agent’s unique identifier.

Query Parameters

string
default:"production"
Environment to list: dev, staging, or production. Any other value falls back to production.
integer
default:"50"
Maximum number of deployments to return. Minimum 1, maximum 200. Values outside that range are clamped; a non-numeric value falls back to 50.

Response

array
Deployments for the requested environment, newest first.
object | null
The check run attached to a deployment.
null | array
null on success, or a list of error objects if the request failed.

Docs for agents: llms.txt