
An API used by mobile apps, partners or other organisations cannot change unpredictably. Two practices make the difference: proper versioning and documentation with OpenAPI.
Versioning strategies
- In the URL (
/api/v1/orders): the simplest and most visible option, and our usual choice. - In a header (
Accept: application/vnd.company.v2+json): cleaner URLs but harder debugging. - Query parameter: rarely, for simple cases.
What counts as a breaking change
Removing or renaming a field, changing a type, adding a new required input field, changing the meaning of a status code. Adding optional fields to the output is usually not breaking, as long as clients ignore unknown fields.
OpenAPI as a contract
An OpenAPI specification describes endpoints, parameters, schemas and errors. From it you can generate:
- interactive documentation with Swagger UI or Redoc,
- ready-made clients for TypeScript, Kotlin or Swift,
- automated contract tests.
Respectful deprecation
Announce with a clear date, send Deprecation and Sunset headers, run both versions in parallel for a period and monitor which clients still use the old one.
Documentation for humans
Beyond generated docs, a short getting-started guide with example requests saves hours of support. In interoperability projects with public bodies, good documentation is often the critical deliverable.
Need API design or documentation? Talk to us.




