/migrationsList Applied Migrations
Returns the migration history for the project — the ordered list of migrations that have been applied to the project's schema, corresponding to the k9o migration status CLI command.
Authorized by the IAM action migrations:read (every project role holds it by default; a workload needs it on its bound IAM policy; a project service token reads as its scope's role).
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
| HTTP | K9O Code | Description |
|---|---|---|
| 200 | Success | |
| 401 | K9O_SESSION_EXPIRED | Your session has expired; re-authenticate and retry. |
| 403 | K9O_ACCESS_DENIED | You must be a project member to list applied migrations. |
| 403 | K9O_IAM_POLICY_DENIED | The bound IAM policy ceiling denies migrations:read (for a workload: its bound policy does not grant it). |
| data * | object[] | The project's applied migrations, oldest version first. With |
| version * | integer | The migration's version, an integer from 1 to 2147483647. Versions apply in ascending order. |
| slug * | string | The migration's slug, as given when it was submitted. |
| appliedAt * | string <date-time> | When the migration was applied. |
| checksum * | string | SHA-256 (hex) of the migration's canonical JSON ( Re-applying a version with a different checksum is refused. |
| noPolicy * | boolean | True when the migration was recorded as declaring no access policy. |
| affectedCollections * | string[] | The collections the migration's operations and policy section touch. |
| meta * | any | Request metadata: cost, timing and correlation ids. |
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.migrations.list()Showing example in TypeScript
{
"data": [
{
"version": 0,
"slug": "string",
"appliedAt": "string",
"checksum": "string",
"noPolicy": false,
"affectedCollections": [
"string"
]
}
]
}