Every API ships a breaking change sooner or later. A field gets renamed, an endpoint moves, an auth scheme changes, and suddenly a customer integration that worked on Friday fails on Monday. The anger that follows is rarely about the change itself. It is about the surprise. Learning how to document breaking api changes well is what turns a painful upgrade into a routine one, and the difference comes down to clarity, timing, and a migration path customers can actually follow.
Most teams treat breaking-change docs as an afterthought: a short changelog line written the night before release. That is backwards. Customers do not read your pull requests. They read your docs, your emails, and your error messages, and if those three disagree, trust drops fast.
How to Document Breaking API Changes: Start With a Complete List
The first step when you document breaking api changes is to list every single one, in one place, before you write a word of explanation. Renamed fields, removed endpoints, changed response shapes, new required headers, stricter validation, different error codes: all of it. A partial list is worse than no list, because customers plan around what you told them and get bitten by what you left out.
Generate the list from the code, not from memory. Diff the OpenAPI spec and the response schemas between versions, walk the auth flow, and ask each engineer on the release to name what they changed that could break a caller. Then group the list by endpoint, old behavior beside new behavior, so readers can find their endpoint in seconds.
Keep a running breaking-changes section in your internal release notes from the day work starts, so the public page is an edit, not a reconstruction. The same discipline that makes good API documentation reduce support tickets applies here: write it while the details are fresh.
Explain What Changed, Why, and What Replaces It
For each change, answer three questions in plain language: what changed, in exact terms, why it changed, and what the customer should use instead. The “why” is the part teams skip most often, and the part that calms people down. A renamed field with no reason reads as carelessness. The same rename, explained as splitting one ambiguous field into two explicit ones, reads as a fix.
Show the before and after. A short code block with the old request and the new request beats three paragraphs of prose: exact field names, exact paths, and the exact error a customer will see if they keep calling the old way. When the error message itself links to the docs, the customer fixes the call without opening a ticket.
Give Customers a Migration Path, Not Just a Warning
A warning tells customers something is ending. A migration path tells them how to get to the other side. Every breaking change needs the second one. That means a step-by-step guide: change this field to that field, move this call to that endpoint, update this header, then test against the staging environment before the cutoff date.
Write the migration guide from the customer’s side of the wire. Start from a working integration, not from your new spec, and show the smallest diff that gets a customer from old to new. If a change touches ten endpoints, give ten small diffs. If there is a codemod or a compatibility shim, put it at the top. The advice in our guide on how to document an API so developers actually use it holds here: the docs that get used respect the reader’s time.
Test the migration guide on a real integration before you publish it. Run the old code, apply the steps, and confirm it works against the new version. A missing step costs you five minutes of testing. It costs your customer an hour of debugging at the worst possible moment.
Version, Deprecate, and Sunset on a Published Timeline
Breaking changes need a version number and a date, and both need to be public before the change ships. Decide the versioning scheme up front. Semantic versioning gives you a shared language for this: a major version bump signals breaking changes, and customers who pin to a major version should not wake up to a different API.
Publish a deprecation timeline with real dates: when the old version stops getting new features, when it stops getting fixes, and when it stops answering requests. Give at least one full release cycle before the cutoff, longer for authentication or billing changes. Then keep those dates. Move a sunset date once and customers learn your deadlines are negotiable. Move it twice and they ignore the next one.
Announce the timeline everywhere customers actually look: the changelog, the docs banner, the developer newsletter, and the response headers of the deprecated endpoints. A Deprecation header and a Sunset header on live responses reach the developers who never open your emails.
Put the Notice Where Developers Will Actually See It
A changelog entry alone does not reach most customers. Developers find out about breaking changes in four places: the docs page they already use, the error they hit, the dashboard they log into, and their inbox. Cover at least three of the four.
Add a banner to the affected docs pages, linking to the migration guide. Return a clear error for old calls, with a link to the guide in the error body. Put a notice in the developer dashboard for accounts that still call the old version. Then send the email to the technical contact on the account, not only the billing contact. The billing contact will not rewrite the integration.
Repeat the notice. Send it when the new version ships, again halfway to the cutoff, and a final time two weeks before the old version goes dark. Each message should link to the same migration guide, so customers always land on current instructions.
Write the Changelog Entry Customers Can Act On
The changelog is where many customers first meet the change, so write the entry for them, not for your team. Lead with what breaks and who it affects. “The /v1/orders endpoint now requires a currency field” is useful. “Improved order handling” is not. Name the affected endpoints, the affected versions, and the cutoff date in the first three lines.
Keep one canonical page for the breaking changes of each release, and link every other notice back to it. When details change, update that one page and note the date. Scattered announcements drift out of sync, and customers end up following a superseded email. One source of truth, kept current, beats five announcements.
How to Handle the Replies When Customers Are Still Angry
Even with good docs, some customers will be angry, and some of that anger will be fair. A customer who rebuilt an integration around your old behavior last month has a real complaint. Acknowledge it directly, point them at the migration guide, and offer concrete help: a pairing session, a review of their diff, or a short extension if the cutoff genuinely cannot be met.
Do not argue about whether the change was breaking. If a customer says it broke them, it broke them. Your spec diff and their experience are two different things, and the experience decides whether they renew. Log every complaint with the endpoint and version involved. Patterns in those complaints show where the docs were unclear, and they are the best input for your next migration guide.
Over time, this feedback loop makes your API easier to change. Teams that document breaking changes well, as part of designing a public API developers enjoy using, build trust that survives a rough upgrade. Teams that do not pay for every change in support tickets and churn.
Frequently Asked Questions
How far in advance should I announce a breaking API change?
Give at least one full release cycle, and longer for auth or billing changes. Announce when the new version ships, remind customers halfway to the cutoff, and send a final notice two weeks before the old version stops working.
Should I keep the old version running after the cutoff?
Only as a short, announced grace period for customers who are mid-migration. An open-ended old version splits your support load and teaches customers that deadlines do not matter. Set the grace period, publish it, and close it.
Breaking changes are a normal part of running an API. The teams that keep their customers are not the ones that never break anything. They are the ones that document breaking api changes early, explain the reason, publish a migration path, and keep the old version alive until the date they promised. Do that consistently, and the next breaking change becomes a routine upgrade instead of a crisis.