Skip to main content
GET
/
api
/
database
/
migrations
List Database Migrations
curl --request GET \
  --url https://api.example.com/api/database/migrations \
  --header 'Authorization: Bearer <token>'
{
  "migrations": [
    {
      "version": "20260416170500",
      "name": "create_posts_table",
      "statements": [
        "CREATE TABLE posts (id UUID PRIMARY KEY DEFAULT gen_random_uuid(), title TEXT NOT NULL);"
      ],
      "createdAt": "2026-04-16T17:05:00.000Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

List successful custom migrations

migrations
object[]
required