Skip to content
Web Design & Development

API Versioning, Done Properly

Managing changes to an API so existing clients keep working, using version numbers, deprecation periods and change policies.

MediaScaleUp Editorial Team 2 min read 19 views
API Versioning, Done Properly

What is at stake

Breaking changes without versioning disrupt integrations and customers, and a clear policy makes change predictable.

The playbook

  1. Avoid breaking changes where possible
  2. Version when breaking changes are unavoidable
  3. Announce deprecations with timelines
  4. Document changes in a changelog
  5. Monitor usage of old versions

Where it goes wrong

Avoid:

  • Silent breaking changes
  • Supporting too many versions indefinitely
  • No deprecation notices
  • Undocumented changes
What to do and what to avoid with API versioning, side by side
Good practice against the usual mistakes, from the sources listed below.

The numbers behind it

Published figures for API Versioning
MeasureFigure
Approachesversions in URLs, headers or media types
Breaking changesremoving fields or changing behavior
Deprecationannouncing removals in advance
Sunset headerRFC 8594 defines a header for announcing retirement dates

Getting outside help

When to hand it over: Bring in help when public APIs need to evolve without breaking partners.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading

More in Web Design & Development