---
title: "List deployments"
method: GET
path: "/sites/{id}/deployments"
tags: ["Deployments"]
---

# List deployments

`GET /sites/{id}/deployments`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/sites/{id}/deployments`
- Auth: API key in header `Authorization`

Deployment history for a site, newest first. Append-only — each push to production, rollback or unpublish records a deployment; `is_live` marks the one serving production traffic.

`stages` lists the pipeline stages the deploy entered, oldest first, each with `name` (`provisioning`, `fetching`, `attaching`, `installing`, `building`, `checking`, `migrating`, `deploying`, `verifying`, `restoring`), `status` (`active`, `succeeded`, `failed`, `canceled`), `details`, `started_at`, `finished_at` and `duration_seconds`. `current_stage` is the open one, null once the deploy ends. `elapsed_seconds` counts up while it runs; `duration_seconds` is null until it ends. `log` is null here — use the logs endpoint.

Reading this endpoint terminalizes deploys whose build worker died without reporting a result.

## Path parameters

- `id` string, required

## Query parameters

- `starting_after` string
- `limit` integer

## Response `200`

List of deployments

- ListResponseDeployment
  - `object` 'list', required
  - `data` Deployment[], required
    - `id` string, required
    - `object` string, required
    - `site` string, required
    - `status` 'pending' | 'building' | 'live' | 'failed' | 'superseded' | 'unpublished', required
    - `commit_sha` string, nullable, required
    - `is_live` boolean, required
    - `url` string, nullable, required
    - `triggered_by` string, nullable, required
    - `error_message` string, nullable, required
    - `db_bookmark` string, nullable, required
    - `current_stage` string, nullable, required
    - `stages` unknown[], required
      - unknown
    - `duration_seconds` number, nullable, required
    - `elapsed_seconds` number, nullable, required
    - `started_at` string, nullable, required
    - `finished_at` string, nullable, required
    - `created_at` string, required
  - `has_more` boolean, required
  - `url` string, required

## Other responses

- `401`: Authentication required
- `404`: Resource not found
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
