---
title: "Classify every database migration record (admin only)"
method: GET
path: "/site/migrations/"
tags: ["site"]
---

# Classify every database migration record (admin only)

`GET /site/migrations/`

## Request

- Base URL: `https://dados.gov.pt/api/1`
- URL: `https://dados.gov.pt/api/1/site/migrations/`
- Auth: none declared

LEDG-2654: PPR came back from a production dump with 34 migrations
claiming to be applied and none of them run, and the only way to see
that was a shell on the machine. Whoever has no production access had
to request a deploy just to read the state.

🚨 Admin-only from the first line. The payload names the schema's
internals and carries the tracebacks of failed migrations. (The sibling
/site/logs/ already serves whole log files to the same audience, so
this opens no new door -- but it must not be the endpoint that does.)

## Response `200`

Success

## Changes

- **2026-11-03** `77edaf8a00ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dados/apis/udata-api/changes/site/migrations/get.md)

---

[API](https://skmtc.dev/dados/apis/udata-api.md) - [All operations](https://skmtc.dev/dados/apis/udata-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dados/apis/udata-api/revisions/77edaf8a00ea?raw)
