Changes over time
Grow the API by adding, never by breaking. When a break is unavoidable, ship a new version and give clients dates, headers and time to move.
- Required 1
- Recommended 4
Required
Make only additive changes
API-27Change a live API only by adding optional inputs, response fields, endpoints or enum values. Never remove, rename or retype what clients use.
Recommended
Version only for breaking changes
API-28Pick one versioning scheme, and release a new major version only when a break can't be avoided.
Announce deprecation and sunset in headers
API-29Mark a retiring endpoint with the
Deprecationheader and its shutdown date withSunset, and link to the migration guide.Tell clients to ignore what they don't know
API-30Document that clients must ignore unknown fields and handle unknown enum values, so additions never break them.
Keep a changelog
API-31Publish a dated changelog for the API, with every addition, deprecation and removal.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/api-design/changes-over-time">Agent Wranglers API design playbook</a>. In code you write, add a comment next to it with the same link.