Customers & growth · Developer marketing
Migration guide framework
Best for Startup to Growth
Use it when
A new version of your API, SDK or library breaks existing code, and developers need clear steps to move to it before the old version shuts down.
Skip it when
- You have no written rules yet for what counts as breaking, how versions are named or how long old ones stay live. Set them with API versioning strategy first.
- You only need a dated record of what changed in each release. Use Changelog framework, and link this guide from its breaking entries.
- The change is inside your company and staff must adopt a new process or system. Use Change communication framework.
What to apply first and what to use instead are listed below.
Approaches
Written guide only
Developers follow written steps and before-and-after code to change their own integration by hand.
- Pro It works for any change and needs no tooling beyond the docs.
- Con Every developer repeats the same edits, so large or repetitive changes move slowly and invite mistakes.
Guide plus automated migration
A codemod or upgrade command rewrites the common cases, and the guide covers what the tool cannot fix.
- Pro Many changes land across a codebase in one run, with a dry run to preview them.
- Con Building and testing the tool takes engineering time, and its output still needs a manual pass where it marks code it could not change.
Inputs
- Breaking change listEvery change in the new version that the versioning rules mark as breaking, with old and new behavior, from the release's pull requests and tickets.
- Versioning policyNotice period, deprecation date and shutdown date for the old version, from API versioning strategy.
- Usage by versionCalls to each deprecated endpoint or method per API key over the last 90 days, from gateway logs or SDK telemetry.
- Old and new reference docsEndpoints, parameters, fields, errors and methods for both versions, from the docs site.
- Migration toolOptionalA codemod or upgrade command with the cases it handles, from the engineering team.
Steps
- List each breaking change and write what changed, why it changed and who is affected, naming the endpoints, fields, methods or settings.
- Write the overview with the deprecation and shutdown dates, the replacement, who must act and what happens after the deadline.
- Build an old to new mapping table for endpoints, parameters, fields, pagination and errors, and note any behavior that changes under the same name.
- Write a what to do section for each change, with ordered imperative steps and before-and-after code, so developers can move one endpoint or feature at a time.
- Add a verification section with a test call, the expected result and a way to confirm no calls to deprecated endpoints remain.
- Publish the guide, link it from the changelog entry and the deprecation notice, and track deprecated calls per key until shutdown, contacting each account still calling.
Output
A migration guide for one version change, published beside the reference docs, plus a tracker of accounts still on the old version.
- Overview with dates, replacement and who must act
- Old to new mapping table
- Each change with what, why and who is affected
- What to do steps with before-and-after code
- Verification call and expected result
- Accounts still calling the old version, with contact date
Done when
- Every breaking change in the release has an entry with what changed, why, who is affected and the steps to take.
- Every entry that needs a code change shows the old and new code side by side.
- The dates in the guide match the notice and shutdown dates in the versioning policy.
- The changelog entry and the deprecation notice both link to the guide.
- A developer can confirm the move with the test call and the check for remaining deprecated calls.
Measure
Track, each week from publication to shutdown, the share of active API keys and calls on the new version and the support tickets tagged to the migration. It worked when old version traffic falls steadily and every large account has moved before shutdown with no extension. Compare the curve and ticket count with your previous version change.
Hypothetical example
Ledgerline, a payments API, retires version 2 on a set date six months out. Version 3 renames the amount field to amount in cents, replaces offset pagination with cursors and stops returning canceled payments in lists. The guide opens with both dates and the replacement, then maps each old field and parameter to its new one and flags the canceled payments change. Each change gets two or three steps and a code diff. A codemod handles the field rename, and the guide covers pagination by hand. Gateway logs show 140 keys still on version 2 after the notice. The team emails them, then calls the ten largest. Two months before shutdown, eight keys remain.
Common mistakes
- Describing what changed without saying what to do. Give each change imperative steps and a code diff.
- Making readers compare two full reference pages. Put every old and new name in one mapping table.
- Covering renamed fields and missing changes in behavior. Note any field or endpoint that keeps its name but returns something different.
- Relying on the changelog and response headers alone. Contact every key still calling the old version before shutdown.
- Leaving out a way to check the work. Add a test call and a way to confirm no deprecated calls remain.
Sources
- Managing Breaking Changes in Connectors · Airbyte
- Breaking Changes Format · Astro Docs contributor guide
- API deprecation guide: timelines, notices, and migration docs · Harkirat Chahal, 2026
Show all 5 sources
- Codemods · Vercel, 2026
- Migrations: the sole scalable fix to tech debt · Will Larson, 2018
By company stage
Apply first
- API versioning strategyCustomers & growth · Developer marketing
Migration guides exist because of versioned breaking changes; you need the versioning and deprecation model first.
Use instead
- API versioning strategy
You have no written rules yet for what counts as breaking, how versions are named or how long old ones stay live. Set them with API versioning strategy first.
- Changelog framework
You only need a dated record of what changed in each release. Use Changelog framework, and link this guide from its breaking entries.
- Change communication framework
The change is inside your company and staff must adopt a new process or system. Use Change communication framework.
Where it sits
Open the developer marketing roadmapRecommended resources
No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.
Progress is not saved until you have an account. Create a free account