QamoosTech
Web & APIsAPI designIntermediate

API Versioning

PronunciationAY-PEE VUR-zhun-ing

Definition

API Versioning is the practice of managing changes to an API by assigning unique versions to different iterations. This allows developers to introduce updates or breaking changes without disrupting existing clients.

Where you hear it

During architectural planning, backend development meetings, and when updating documentation for public or internal APIs.

Examples

  • We need to implement API versioning in the URL, such as /v1/users and /v2/users.
  • The team decided to use a custom HTTP header for API versioning instead of query parameters.
  • Clients on v1 keep working while the new fields ship under v2.

Common mistake

Assuming that every small change requires a new version, which leads to unnecessary complexity and maintenance overhead for the API team.

Say it at work

  • In a meeting or chatLet us check how we are handling API versioning for this new endpoint before we merge the code.
  • In an email or ticketPlease update the documentation to reflect the new API versioning strategy we agreed on.