List every container that has ever run for an environment — current and replaced by a later redeploy. Use each entry's `container_id` (or `id`) with the `/containers/{container_id}/metrics/history` endpoint to fetch persisted metrics for a specific container generation, including ones that no longer exist because a redeploy replaced them.
Changed onRequest
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/projects/{project_id}/environments/{environment_id}/container-history
- Auth: HTTP bearer
Path parameters
Project ID
Environment ID
Query parameters
Only return containers belonging to this deployment. Omit to list containers across every deployment the environment has ever had.
Maximum number of replaced container rows to return, most recently replaced first (default 20, max 100). Every currently-running container is always included and does not count against this limit — it only bounds how much historical (replaced-by-redeploy) context comes back alongside them.
Response
Containers that have run for this environment: every currently-running one first (uncapped), then the newest replaced ones up to limit
Example response
{
"containers": [
{
"deleted_at": "2025-10-12T12:15:47.609192Z",
"deployed_at": "2025-10-12T12:15:47.609192Z",
"finished_at": "2025-10-12T12:15:47.609192Z"
}
]
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning