---
title: "Fetch an existing entry from migration history"
method: GET
path: "/v1/projects/{ref}/database/migrations/{version}"
tags: ["Database"]
---

# Fetch an existing entry from migration history

`GET /v1/projects/{ref}/database/migrations/{version}`

Only available to selected partner OAuth apps

## Path parameters

- `ref` string, required
- `version` string, required

## Response `200`

- V1GetMigrationResponse
  - `version` string, required
  - `name` string
  - `statements` string[]
  - `rollback` string[]
  - `created_by` string
  - `idempotency_key` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden action
- `429` — Rate limit exceeded
- `500` — Failed to get database migration

---

[API](https://skmtc.dev/supabase/apis/management-api.md) · [All operations](https://skmtc.dev/supabase/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/management-api/revisions/a7cb39418064/schema)
