Skip to main content
GET
/
api
/
v1
/
migrations
List Migrations
curl --request GET \
  --url https://api.example.com/api/v1/migrations
{
  "revisions": [
    {
      "revision": "<string>",
      "description": "<string>",
      "is_applied": true,
      "is_head": true,
      "is_dynamic": true,
      "down_revision": "<string>",
      "branch_labels": [
        "<string>"
      ],
      "created_at": "<string>"
    }
  ],
  "total": 123,
  "current_revision": "<string>"
}

Headers

authorization
string | null

Response

Successful Response

Response schema for listing all migrations.

revisions
MigrationRevisionResponse · object[]
required

List of all revisions

total
integer
required

Total number of revisions

current_revision
string | null

Current database revision