Authentication
Requires anx-api-key header. The key can address every migration in its
account; a migration from another account returns 404, never 403. See
Authentication.
The migration object
Every endpoint here returns migrations in the same shape:awaiting_files, ready, awaiting_approval or completed — see
Core concepts → Migration.
Omitted from list results, because working it out costs several lookups per
migration; get the migration to read it.true once the migration is archived.Opens the company in the Vern app.
/companies/open/{key} also accepts the
external_id in place of the id.For a checkpoint, the ID of the migration it was
created from; otherwise
null.The ID of the group’s first migration — its own ID for a first migration with
checkpoints — or
null for a migration that isn’t grouped.Whether this checkpoint’s imports leave out records an earlier migration of
its group already holds.
List migrations
Exact match on the migration’s external ID (the one shown on its company page).
Alphanumeric, hyphens and underscores, at most 255 characters.
Only migrations from this source, by name. A name that matches no source
returns an empty page, not a
404.Any migration ID of a checkpoint group: returns
that group’s first migration and every checkpoint. An unknown ID returns an
empty page.
next_cursor until it comes
back null:
external_id:
Get a migration
{ "migration": { … } }, including its status. Archived migrations can
still be read.
Update a migration
400.
A new external ID, or
null to clear it. Alphanumeric, hyphens and
underscores, at most 255 characters, and unique among your migrations.Template slugs to add. Each one without a sheet gets a new, empty sheet;
slugs that already have one are skipped. Templates are never removed this way,
because removing one would drop its sheet and data.
Checkpoints only: whether imports started from
now on leave out records an earlier migration of the group already holds.
400 (code: "not_a_checkpoint") to turn it on for a migration that isn’t a
checkpoint. A checkpoint’s source can’t be changed (409,
code: "checkpoint_source_fixed").source or adding templates is refused with 409
(code: "imports_in_flight") while an import is in progress for the migration —
including a preview waiting for approval — because it would change what that
import reads from or writes into. Cancel it or let it finish first. name and
external_id can always change.
200 OK with the updated { "migration": { … } }.
Archive a migration
- It drops out of
GET /migrationsunless you passinclude_archived=true. - It stays readable — the migration, its runs, files, preview, thread, session log and knowledge — and exportable.
- Anything that changes it is refused with
409andcode: "migration_archived": uploads, runs, answers, credentials, knowledge, source connection, cancelling a run, andPATCH.
409, code: "imports_in_flight",
and the runs to cancel first:
200.
200 OK with the migration, now "archived": true.
Errors
See Errors & limits for the shared error model.
Next
- Create a migration
- Upload files
- Poll a run — including how to cancel one.