Migrations API
Automate a model migration from draft through shadow traffic to cutover
The Migrations API drives the model migration lifecycle from code: link a migration to an eval suite, shadow the candidate on live traffic while you read the comparison, then complete by rewriting the routing policies you select.
Base URL and authentication
Authenticate with the mg_ API key you send /v1/responses with. The organization comes from the key; customer API keys are rejected.
Any active organization API key can drive the full lifecycle, including completion, so treat automation keys like deploy credentials.
Reference
Requests that name the baseline model directly are never rewritten. To revert a completed migration, PATCH its status to reverted: Gateway restores the rewritten policies, skipping any edited since the cutover. See the error codes worth branching on.