Validate migration data
POST
https://app.speybooks.com/api/v1/migration/{id}/validateRun the gate checks against the migration's current state
without finalising it. The gates confirm that the required
imports are attached and confirmed, that the cutover dates
align, that any contact conflicts are resolved, and that the
opening balance reconciles (the clearing accounts net to zero
and the ledger balances). If every gate passes and the
migration is in an eligible state, it is advanced to
ready_to_execute. The response lists each gate with its
pass or fail and a message. Returns 422 if the migration is
in a terminal state.
Path parameters
idstringrequiredMigration ID (e.g. mig_1).
Response
200Validation results. Returns ready boolean and per-gate pass/fail with messages.
Show response fields
gatesarray<object>Show child attributes
codestringmessagestringpassedbooleanreadybooleanError codes
400Invalid migration ID format.
404Migration not found.
422Migration is in a terminal state.