---
title: "List applied database migrations"
method: GET
path: "/sites/{id}/db/migrations"
tags: ["Sites"]
---

# List applied database migrations

`GET /sites/{id}/db/migrations`

## Request

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

Every change applied to this database, oldest first. Each carries `restore_to` — the state the database was in *before* that change ran — so any of them can be undone with `db/restore` without anyone having captured a restore point in advance.

## Path parameters

- `id` string, required

## Query parameters

- `environment` 'development' | 'production'

## Response `200`

Applied migrations

- object
  - `object` string
  - `migrations` object[]
    - `name` string
    - `applied_at` string
  - `migration_count` integer

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `404`: Resource not found
- `422`: Validation error
- `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)
