Home / Insights / Architecture and Modernization

Architecture and Modernization

API Versioning and Backward Compatibility for Mobile and Partner Clients

Web front ends update when you deploy; mobile apps and partner integrations do not. This guide sets out how to evolve an API without breaking clients you cannot force to upgrade, and how to retire old versions without surprises.

TopicsArchitecture and ModernizationMobile App DevelopmentWeb and SaaS Development

Key takeaways

  • Treat every released mobile build and every partner integration as a client you cannot update; design changes to be additive by default.
  • Agree a written definition of a breaking change, including semantic changes such as new defaults or enum values, and check it in code review and CI.
  • Pick one versioning scheme and apply it consistently; a major version in the path or a date-based version parameter both work if the deprecation policy behind them is clear.
  • Pair API deprecation with client controls: a minimum supported app version, in-app update prompts and machine-readable sunset signals for partners.
  • Contract tests against the oldest supported clients catch most compatibility regressions before they reach production.

A single-page web app and its API can change together in one deployment. A mobile app cannot. Once a build is in the App Store or Google Play, some users will keep running it for months, and partner systems that integrate with your API may only be updated once a year, on their schedule rather than yours. Every change to the API has to be judged against all of those clients at once.

This article is for CTOs, architects and product leads who own an API consumed by mobile apps, partners or both, and who want a versioning approach that lets the product move without breaking anyone. It covers what counts as breaking, the main versioning schemes and their trade-offs, deprecation and sunset policy, the mobile-specific controls you need, and how to test compatibility. It reflects how we approach these questions in our software architecture consulting, where API evolution is a frequent part of architecture reviews and modernisation plans.

Why mobile and partner clients change the rules

The core problem is that you lose control over when clients upgrade. Three kinds of client behave differently:

  • Your own web front end: deployed with the API, so changes can be coordinated. Even here, users with an open tab may run old code for hours.
  • Your mobile apps: each release creates a new client version that stays in use until users update. Store review adds delay before a fix can even reach them, and some devices cannot install newer builds because their operating system is too old.
  • Partner and customer integrations: written by other teams, often against a snapshot of your documentation, and changed only when they have budget and a reason.

The consequence is that, at any moment, you are serving several generations of client. A field rename that is trivial for your web team can break an app version still used by a meaningful share of customers, or a partner’s nightly sync that nobody on their side remembers how to change.

Know what is actually in use

Before designing a versioning policy, measure your client population. Log the app version, platform and OS version on every request (a custom header set by the app is enough), and identify partner traffic by API key or client ID. Without this data, every deprecation decision is a guess.

Action: add client identification to request logs now, even before you change anything else. It is the foundation for every later decision in this article.

What counts as a breaking change

Teams argue about versioning schemes when the more important question is what they promise not to break. Google’s AIP-180 on backwards compatibility is a useful reference because it distinguishes three kinds of compatibility: source (client code still compiles against a newer library), wire (old clients still communicate correctly with a newer server) and semantic (behaviour still matches what a reasonable developer expects). Semantic breaks are the ones most often missed.

ChangeUsually safe?Notes
Add an optional request fieldYesOld clients that omit it must get the previous behaviour
Add a response fieldUsuallySafe only if clients ignore unknown fields; verify your own apps’ JSON parsing
Add a new endpointYesNo effect on existing clients
Add an enum value in a responseRiskyOld apps with exhaustive switch statements may crash or show blank states
Make an optional field requiredNoOld clients will start receiving validation errors
Rename or remove a fieldNoAdd the new name alongside the old one instead
Change a field’s type or formatNoIncluding string to number, or date formats
Change a default value or sort orderNo (semantic)Wire-compatible but changes behaviour clients rely on
Tighten validation or rate limitsOften noRequests that used to succeed now fail
Change error codes or error shapeNoClient error handling is frequently coded against specific values

Make the definition enforceable

Write your own list, adapted from references such as AIP-180, into the engineering handbook and the pull-request template. Where you publish an OpenAPI or protobuf definition, run a schema-diff tool in CI that flags removals, type changes and new required fields automatically, so the discussion happens before merge rather than after an incident.

Action: review the last three months of API changes against the table above. Any that would now be classed as breaking show where the policy needs to be explicit.

Versioning schemes compared

Once the breaking-change rules are clear, the versioning scheme is mostly about how clients select behaviour and how you communicate change. The main options:

SchemeExampleStrengthsWeaknessesGood fit
Major version in the path/v1/orders, /v2/ordersVisible, easy to route, cache and documentCoarse; a new major version can mean duplicating many endpointsPublic and partner APIs with infrequent breaking changes
Date-based version parameter or header?api-version=2025-01-15Fine-grained; each client pins a known contractServer must maintain transformations for many versionsAPIs with many partners and steady evolution
Media-type or header negotiationAccept: application/vnd.example.v2+jsonKeeps URLs stableLess visible; harder to test in a browser and to debugTeams already comfortable with content negotiation
No explicit version, additive onlySingle evolving APISimplest to runNo escape hatch when a breaking change is unavoidableInternal APIs with only your own, frequently updated clients

Large providers illustrate the two main patterns. Google’s AIP-185 on API versioning requires a major version in the URI path, exposes no minor or patch numbers, and recommends channel-based pre-release versions such as v1beta, with a recommended deprecation period of 180 days before beta functionality is removed. Microsoft’s Azure REST API guidelines take the date-based route: every request carries an api-version query parameter in YYYY-MM-DD form, the version does not appear in the path, and breaking changes require formal review and a long deprecation period.

How to choose

  • If you have a handful of partners and break things rarely, a major version in the path is easiest for everyone to understand.
  • If you have many partners and evolve continuously, date-based versions with server-side transformation give each partner stability, at the cost of more engineering on your side.
  • For mobile apps you control, additive change plus a minimum supported app version often removes the need for frequent major versions at all.

Action: choose one scheme per API surface (public partner API, private mobile API) and document it. Mixing schemes inside one API confuses clients and your own team.

Designing APIs that can evolve without new versions

The cheapest version is the one you never need. Several design habits reduce the number of breaking changes you face.

Server-side habits

  • Expand, then contract: add the new field or endpoint, migrate clients, and only remove the old one after usage drops to an agreed threshold.
  • Use objects, not bare values: returning {"price": {"amount": 1200, "currency": "AUD"}} leaves room to add fields later; a bare number does not.
  • Paginate from the start: adding pagination to an endpoint that previously returned everything is a breaking change.
  • Version events and webhooks too: partners consuming your webhooks are clients; include a version or schema identifier in every payload.
  • Feature flags on the server: enable new behaviour per client version or per partner, rather than for everyone at once.

Client-side habits for your own apps

  • Tolerant parsing: ignore unknown fields and handle unknown enum values with a sensible default rather than a crash.
  • Remote configuration: let the server tell the app which features to show, so a feature can be switched off without a release.
  • Graceful degradation: when an endpoint returns an unexpected error, show a useful message and a route to update, not a blank screen.

These client habits matter as much as the server rules, because they decide how forgiving old app versions will be when the API inevitably changes. We touch on related client hardening in mobile app security in practice, where certificate pinning is another area that needs a planned rotation path across app versions.

Action: add tolerant parsing and unknown-enum handling to your mobile apps’ networking layer in the next release; it pays off for every future API change.

Deprecation, sunset and minimum app versions

Versioning without a retirement policy simply accumulates old versions. A good policy says how long versions are supported, how clients are told, and what happens at the end.

For partners

  • Publish a support period for each major or dated version, and a minimum notice period before retirement. Microsoft’s guidelines, for example, require at least 90 days before retiring an earlier preview version; set your own figures for stable versions and put them in partner contracts where relevant.
  • Signal deprecation in responses as well as by email. RFC 8594 defines a Sunset HTTP header carrying the date a resource is expected to become unresponsive, plus a link relation pointing to migration information. The RFC notes that the date is a hint rather than a guarantee and that the header is not intended for early-stage deprecation, so pair it with your own documentation and direct communication.
  • Track usage of deprecated versions per partner and contact the remaining users individually well before the date.

For mobile apps

You cannot email every user, so build controls into the app:

  1. Minimum supported version: on launch, the app checks a configuration endpoint that returns the minimum and recommended versions per platform.
  2. Soft prompt: below the recommended version, show a dismissible update prompt.
  3. Hard block: below the minimum version, show a full-screen message with a link to the store. On Android, Google Play’s in-app updates offer an immediate flow for updates critical to core functionality and a flexible flow that downloads in the background.
  4. Grace periods: raise the minimum version only after usage of older versions has fallen to an agreed level, except for security fixes.

Remember that some users cannot update because their OS is no longer supported by your latest build. Decide consciously whether to keep an older API path for them or to accept losing them, and communicate that decision.

Action: if your apps do not yet have a minimum-version check, add it before your next significant API change. Without it, you have no lever to retire old behaviour.

Testing backward compatibility

Compatibility promises are only as good as the tests that enforce them.

Layers of testing

  • Schema diff in CI: compare the API definition on each pull request with the last released version and fail on breaking changes unless explicitly approved.
  • Consumer-driven contract tests: each client (mobile app versions, key partners) records the requests it makes and the fields it relies on; the API build verifies those contracts.
  • Replay of recorded traffic: anonymised production requests from older client versions replayed against a staging build.
  • Old builds in regression: keep the oldest supported app builds installable on test devices and run a smoke suite against each release candidate of the API.

Load and performance behaviour can also change between versions, particularly when a new version adds fields that require extra queries; see performance testing for mobile backends for building realistic load from real client behaviour.

Illustrative example: a 30-person SaaS company with an iOS app, an Android app and a dozen integration partners might keep contract files for the three oldest supported app versions and for each partner in the API repository. A pull request that removes a field used by any of those contracts fails CI, prompting the developer to follow the expand-then-contract route instead.

Governance, costs and a rollout checklist

Who owns the policy

Someone must own the API as a product: an architect or tech lead who approves breaking changes, maintains the deprecation calendar and talks to partners. In smaller companies this can be part of a role; what matters is that it is named. For organisations modernising older systems, the same discipline helps when moving to event-driven integration, as described in core banking modernisation with APIs and event streams.

Costs to plan for

  • Running and testing multiple versions in parallel, including transformation layers for date-based schemes.
  • Documentation and changelogs for each version.
  • Partner communication and support during migrations.
  • Observability: dashboards showing traffic by version, app build and partner.

Rollout checklist

  1. Client identification (app version, platform, partner ID) logged on every request.
  2. Written definition of breaking changes, including semantic changes, in the handbook and PR template.
  3. One versioning scheme chosen per API surface and documented.
  4. Schema diff running in CI against the last released definition.
  5. Contract tests for the oldest supported app versions and key partners.
  6. Tolerant parsing and unknown-enum handling in all first-party apps.
  7. Minimum and recommended app version endpoint, with soft and hard prompts.
  8. Published support and deprecation periods; Sunset headers and direct notices for retiring versions.
  9. Dashboard of traffic by version, reviewed before every deprecation decision.

Frequently asked questions

Should we put the version in the URL or in a header?

Both work. A major version in the path is more visible and easier to route, cache and document; a header or date-based parameter allows finer-grained evolution. Consistency and a clear deprecation policy matter more than the mechanism.

How long should we support an old API version?

Long enough for your slowest important clients to migrate. Base the period on measured usage, partner contracts and how quickly your app users update, publish it, and give generous notice before retirement.

Is adding a field to a response a breaking change?

Usually not, provided clients ignore unknown fields. Check your own apps’ parsing, and treat new enum values in responses with care, because older clients may not handle values they do not recognise.

How do we stop users running very old app versions?

Add a minimum supported version check at app launch, backed by a configuration endpoint, with a soft prompt for recommended updates and a full-screen block below the minimum. On Android, Play’s in-app update flows can handle the update itself.

Do webhooks need versioning?

Yes. Webhook consumers are clients too. Include a version or schema identifier in each payload, apply the same breaking-change rules, and let partners choose when to move to a new payload version.

What does an architecture review of our API involve?

Typically a look at current clients and traffic by version, the breaking-change policy, schema and contract testing, deprecation history and partner commitments, ending with a prioritised plan. Scope depends on the number of APIs and clients involved.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. Google API Improvement Proposals: AIP-180 Backwards compatibility — accessed 9 November 2026. Source, wire and semantic compatibility, and examples of safe versus breaking changes such as new required fields and changed defaults.
  2. Google API Improvement Proposals: AIP-185 API versioning — accessed 9 November 2026. Major version in the URI path, channel-based versions such as v1beta, and a recommended 180-day deprecation period for beta functionality.
  3. Microsoft: Azure REST API Guidelines — accessed 9 November 2026. Date-based api-version query parameter, no version in the path, review of breaking changes and at least 90 days before retiring earlier previews.
  4. IETF RFC 8594: The Sunset HTTP Header Field (May 2019) — accessed 9 November 2026. Machine-readable signal of when a resource is expected to become unresponsive, with caveats that the date is a hint.
  5. Android Developers: In-app updates (Play Core) — accessed 9 November 2026. Immediate and flexible update flows for prompting users to move off old app versions.

Is your API ready for the next breaking change?

We can review your clients, versioning policy and compatibility tests, and give you a prioritised plan for evolving the API without breaking mobile users or partners.