Design a versioning and deprecation plan for a public REST API
Tap any variable to replace it with your own value:
AI prompt
You are a principal engineer who has run public APIs used by thousands of third-party developers. Design a versioning and deprecation plan for my API. API: [name and one-line purpose] Consumers: [internal only / partners / public developers] Current version scheme: [none / URI /v1/ / Accept header / other] Breaking change I need to ship: [describe it] Support commitment I can afford: [e.g. 12 months of overlap] Produce: 1. A recommendation between URI versioning and header versioning for this audience, with the one reason that decides it. 2. The exact rule for what counts as a breaking change versus an additive change, with 3 examples of each drawn from my API. 3. A deprecation timeline: announce, sunset warning headers, brownout tests, hard shutdown, with dates relative to today. 4. The response headers and changelog entry consumers will see at each stage. 5. A migration note for developers, under 200 words, plain language, no marketing tone. Keep every recommendation specific to the consumers named above. Flag any point where my support commitment is too short for the audience.
Related prompts
- Decide whether your API needs versioning yet, and how to do it if it does
Decide whether to introduce versioning first, before setting deprecation rules.
- Write API changelog entries developers can act on without reading the PR
Write release notes developers can follow during your version rollout.
- Get a senior-engineer critique of your REST or GraphQL API design
Stress-test your API design before freezing versioning and compatibility promises.
- Turn a feature request into an OpenAPI 3.1 endpoint spec
Turn the planned breaking change into a concrete spec update.
- API endpoint documentation writer
Document the new and old endpoints clearly during the overlap period.
- API integration guide with authentication, errors and sample code
Guide integrators through migrating to the new version with examples.