---
title: "GET /sites/{site_id}/database/migrations"
method: GET
path: "/sites/{site_id}/database/migrations"
tags: ["database"]
---

# GET /sites/{site_id}/database/migrations

`GET /sites/{site_id}/database/migrations`

Returns the list of migrations available for the specified branch, indicating which ones have been applied to the database.

## Query parameters

- `branch` string

## Response `200`

OK

- ListDatabaseMigrationsResponse — Response containing the list of migrations for a branch
  - `migrations` DatabaseMigration[] — List of migrations
    - `version` integer — The migration version number
    - `name` string — The migration name
    - `path` string — The path to the migration file in the deploy bundle
    - `applied` boolean — Whether this migration has been applied to the branch

## Other responses

- `404` — Database or branch not found
- `423` — Database is disabled
- `default` — error

---

[API](https://skmtc.net/netlify/apis/netlify-s-api-documentation.md) · [All operations](https://skmtc.net/netlify/apis/netlify-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netlify/netlify-s-api-documentation/versions/71540d1b5d9d/schema)
