Customers & growth · Developer marketing

Migration guide framework

Best for Startup to Growth

1ASSESS2PLAN3MIGRATE4VERIFY

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 list
    Every 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 policy
    Notice period, deprecation date and shutdown date for the old version, from API versioning strategy.
  • Usage by version
    Calls to each deprecated endpoint or method per API key over the last 90 days, from gateway logs or SDK telemetry.
  • Old and new reference docs
    Endpoints, parameters, fields, errors and methods for both versions, from the docs site.
  • Migration toolOptional
    A codemod or upgrade command with the cases it handles, from the engineering team.

Steps

  1. List each breaking change and write what changed, why it changed and who is affected, naming the endpoints, fields, methods or settings.
  2. Write the overview with the deprecation and shutdown dates, the replacement, who must act and what happens after the deadline.
  3. Build an old to new mapping table for endpoints, parameters, fields, pagination and errors, and note any behavior that changes under the same name.
  4. 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.
  5. Add a verification section with a test call, the expected result and a way to confirm no calls to deprecated endpoints remain.
  6. 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

Show all 5 sources

By company stage

  1. Pre-IdeaNot applicableNo product exists so no versions or breaking changes exist.
  2. IdeaNot applicableAn MVP has few users and changes can be handled by direct contact.
  3. Early StartupUsefulEarly users on versioned APIs benefit, but the base is small.
  4. StartupCriticalHundreds of developer customers make breaking changes risky without clear guides.
  5. GrowthCriticalThousands of integrations depend on stable transitions and guides protect retention.
  6. ScaleUsefulMultiple products and versions need migration support but processes already exist.
  7. EnterpriseUsefulHandled by established developer relations and product teams across many units.

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.

Recommended 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