Validate migration data
POST
https://app.speybooks.com/api/v1/migrations/{id}/validateRun all gate checks against the migration's current state. Gates verify that all required imports are attached, confirmed, and consistent.
If all gates pass and the migration is in an eligible status, it is advanced to ready_to_execute.
Returns the list of gates with pass/fail and messages.
Returns 422 if the migration is in a terminal state.
Path parameters
id string requiredMigration ID (e.g. mig_1).
Response
200 Validation results. Returns ready boolean and per-gate pass/fail with messages.
Show response fields
gates array<object>Show child attributes
code stringmessage stringpassed booleanready booleanError codes
400 Invalid migration ID format.
404 Migration not found.
422 Migration is in a terminal state.