API versioning without painting yourself into a corner
When to version an API, how to add fields safely, and why `/v2` is not the first tool you should reach for.
Compatibility is a product feature
If you have external developers, every breaking change costs their time. Versioning is how you schedule that cost instead of surprising them on a Tuesday.
Prefer additive change
- Add optional fields; do not rename or remove without a date.
- New error codes should not break clients that only check
2xxvs not. - Document deprecation with a sunset date you actually keep.
When /v2 is justified
A new resource model, new auth, or a change that cannot be done additively. Run v1 and v2 in parallel with a published end-of-life. Do not create v2 because a field name annoyed someone.
Related
Last verified: August 2026. Technology and pricing change — always confirm current details with the vendor.