Admin
List Schema Migrations
Return all migration files + applied state. Bootstraps the tracking table on first call so the page works on an unseeded DB.
target selects the database. KOLens has two: the app's own Postgres and Supabase (auth / profiles / credits / assistant). The Supabase tab needs SUPABASE_DB_URL; without it we return configured: false and an empty list rather than erroring, so the UI can render a setup hint.
get/admin/migrations
Request
- Base URL: https://api.kolens.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.kolens.ai/admin/migrations
- Auth: none declared
Query parameters
targetstring
Which database: 'app' (Neon, DATABASE_URL) or 'supabase'.
Headers
x-admin-secretstring nullable
Response
Successful Response
object required
Changes
No recorded changes to this operation across all 1 revision of this API.