New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Write an API versioning strategy document

API Versioning Strategy: [Service Name]

by mohitagw15856 · MIT license · ★ 1,395 on GitHub · updated Sep 23

API Versioning Strategy: [Service Name] cover

Write an API versioning strategy document for a service or API platform. Use when asked to define versioning policy, plan API deprecation, classify breaking changes, or document version lifecycle.

---
name: api-versioning-strategy
description: "Write an API versioning strategy document for a service or API platform. Use when asked to define versioning policy, plan API deprecation, classify breaking changes, or document version lifecycle. Produces a complete versioning strategy with breaking-change classification table, deprecation timeline, migration guide template, and client communication template."
---

# API Versioning Strategy

Produce a complete API versioning strategy document that gives a service team durable, consistent rules for evolving their API without breaking consumers. This document covers the versioning scheme selection (with rationale), lifecycle policy from introduction through sunset, a precise breaking-change classification, and all the communication artifacts a team needs when deprecating a version. Engineers should be able to hand this document to a new team member or external consumer and have them understand exactly what to expect.

## Required Inputs

Ask for these if not already provided:
- **API type** — REST, GraphQL, or gRPC (each has different versioning mechanics)
- **Current versioning approach** — URL path (`/v1/`), request header, query parameter, or none; if none, document starts fresh
- **Number of existing versions and active consumer count** — needed to size the lifecycle policy and migration scope
- **Deprecation timeline constraints** — any hard deadlines (contract SLAs, compliance windows, annual release cycles)
- **Consumer type** — internal teams only, external partners, public API, or mix (affects communication channel choices)

Overview

Produce a complete API versioning strategy document that gives a service team durable, consistent rules for evolving their API without breaking consumers. This document covers the versioning scheme selection (with rationale), lifecycle policy from introduction through sunset, a precise breaking-change classification, and all the communication artifacts a team needs when deprecating a version. Engineers should be able to hand this document to a new team member or external consumer and have them understand exactly what to expect.

Manual install (npx, ZIP)
Claude Codenpx skills add mohitagw15856/pm-claude-skills --skill api-versioning-strategy -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/mohitagw15856/pm-claude-skills/tar.gz/f6ca79348c55 \ | tar -xz -C ~/.claude/skills --strip-components=2 pm-claude-skills-f6ca79348c55/skills/api-versioning-strategy
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/fc92918248a0e2db9eee/api-versioning-strategy.zip" -OutFile "$env:TEMP\api-versioning-strategy.zip"; Expand-Archive "$env:TEMP\api-versioning-strategy.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md15.0 KB
Read the files here
mohitagw15856/f6ca7931 file
SKILL.md
Show the full text321 lines

API Versioning Strategy

Produce a complete API versioning strategy document that gives a service team durable, consistent rules for evolving their API without breaking consumers. This document covers the versioning scheme selection (with rationale), lifecycle policy from introduction through sunset, a precise breaking-change classification, and all the communication artifacts a team needs when deprecating a version. Engineers should be able to hand this document to a new team member or external consumer and have them understand exactly what to expect.

Required Inputs

Ask for these if not already provided:

  • API type — REST, GraphQL, or gRPC (each has different versioning mechanics)
  • Current versioning approach — URL path (/v1/), request header, query parameter, or none; if none, document starts fresh
  • Number of existing versions and active consumer count — needed to size the lifecycle policy and migration scope
  • Deprecation timeline constraints — any hard deadlines (contract SLAs, compliance windows, annual release cycles)
  • Consumer type — internal teams only, external partners, public API, or mix (affects communication channel choices)

If any input is missing, ask before producing the document. For GraphQL, note that the versioning approach differs substantially (schema evolution over versioning) and tailor the scheme section accordingly.

Output Format


API Versioning Strategy: [Service Name]

Owner: [Team Name] API Type: [REST / GraphQL / gRPC] Document Version: 1.0 Last Reviewed: [Date] Next Review: [Date + 6 months]


1. Versioning Scheme

Selected Approach: [URL Path / Request Header / Query Parameter]
Scheme Example Pros Cons Verdict
URL Path /v2/orders Visible in logs and bookmarks; trivial to route Violates strict REST resource identity; clutters URL space Recommended for public-facing REST APIs
Accept Header Accept: application/vnd.[service].v2+json Keeps URLs clean; proper content negotiation Harder to test in browser; less visible in logs Recommended for internal APIs with controlled clients
Query Parameter /orders?version=2 Easy to retrofit without URL restructuring Often missed in client code; cache-key complications Acceptable only for read-heavy APIs already in production
GraphQL Schema Evolution Field deprecation + @deprecated directive No versioning needed for additive changes Requires disciplined schema design Recommended for GraphQL APIs

Rationale for [chosen scheme]: [One paragraph explaining why this scheme fits the API type, consumer type, and operational context provided. Reference the specific inputs — e.g., "Because this API has external partners who integrate via generated clients, URL path versioning provides the most predictable routing behavior and eliminates header negotiation complexity."]

Version Format
[Base URL]/v{MAJOR}/{resource}

Examples:
  https://api.[company].com/v1/orders
  https://api.[company].com/v2/orders/{id}/items

Version identifier: integer only (v1, v2, v3)
No minor versions in the URL — minor/patch changes are non-breaking and deployed continuously.

2. Version Lifecycle Policy

Lifecycle Stages
  STABLE ──────────────────────────────────────────────────►
      │
      ├─ STABLE        Active development, full SLA, new consumers allowed
      │
      ├─ DEPRECATED    Announced, timeline posted, migration docs live.
      │                New consumers blocked. Existing consumers receive warnings.
      │
      ├─ SUNSET        Requests return HTTP 410 Gone + migration pointer.
      │                30-day window before routing is removed.
      │
      └─ RETIRED       Routing removed, docs archived, no traffic accepted.
Stage Duration SLA Applies New Consumers Allowed Required Action
Stable Until superseded Yes — full Yes None
Deprecated [12 months / adjust per constraint] Yes — degraded acceptable No Migrate before sunset date
Sunset 30-day window Best-effort only No Migrate immediately
Retired Permanent None No —

Minimum Stable Period: A version must remain Stable for at least [6 / 12] months before deprecation can be announced.

Maximum Simultaneous Versions: No more than [2] versions in Stable or Deprecated status at any time. Releasing v3 requires committing to a sunset date for v1 in the same announcement.


3. Breaking vs. Non-Breaking Change Classification

Apply this table before every API change. If a change is marked Breaking, it requires a new major version. When uncertain, default to Breaking.

Change Type Specific Example Classification Rationale
Remove a response field Delete order.legacy_id from response Breaking Clients reading this field will null-pointer or fail
Rename a field user_name → username Breaking Clients referencing old name receive null
Change field type "amount": "10.00" → "amount": 10.00 Breaking Type mismatch at deserialization
Make optional field required email required in POST body Breaking Existing callers omitting it receive 400
Remove an endpoint DELETE /v1/widgets/{id} removed Breaking Existing callers receive 404
Change HTTP method GET /search → POST /search Breaking Bookmarked or cached GET calls fail
Change authentication scheme API key → OAuth2 Breaking All clients must re-authenticate
Restructure error response shape Error JSON schema changed Breaking Error-handling code misparses responses
Expand enum values (response) New status: "on_hold" value returned Breaking Switch statements with no default fall through
Change pagination defaults page_size default 20 → 50 Breaking Response length changes unexpectedly
Tighten input validation Max length 100 → 50 Breaking Previously valid inputs now rejected
Add new optional field to response Add order.tax_breakdown Non-Breaking Clients ignore unknown fields per spec
Add new optional request parameter Add ?include_archived=true Non-Breaking Ignored by existing clients
Add a new endpoint GET /v1/orders/{id}/audit Non-Breaking No existing client references it
Relax input validation Min length 10 → 5 Non-Breaking Existing valid inputs remain valid
Performance or latency improvement Response time reduced Non-Breaking —
Add new enum value (request-only) Accept new type: "express" Non-Breaking Existing values still accepted

4. Deprecation Process

Step-by-Step Deprecation Checklist
  • T-0 (Decision day): Engineering lead approves deprecation. New version confirmed Stable. Sunset date set.
  • T-0: Update API docs — add deprecation banner to all v[N] endpoint pages.
  • T-0: Add Deprecation and Sunset response headers to all v[N] responses (see format below).
  • T-0: Block new consumer onboarding for v[N] in API gateway and developer portal.
  • T-0: Send initial deprecation notice to all registered consumers (see Section 5 template).
  • T-0: Open tracking issue in engineering backlog linking all known consumers to their migration status.
  • T minus 30 days: Send 30-day warning to all consumers still sending v[N] traffic.
  • T minus 7 days: Send final warning. If consumer traffic > 100 req/day, escalate directly to their engineering lead.
  • Sunset date: Switch v[N] routing to return HTTP 410 Gone with body pointing to migration guide.
  • T plus 30 days: Remove routing rules. Archive documentation. Close tracking issue.
Deprecation Response Headers
HTTP/1.1 200 OK
Deprecation: true
Sunset: Sat, 01 Jan 2027 00:00:00 GMT
Link: <https://docs.[company].com/api/migration/v1-to-v2>; rel="successor-version"
Sunset Response Body
HTTP/1.1 410 Gone
Content-Type: application/json

{
  "error": "api_version_sunset",
  "message": "API v1 was sunset on 2027-01-01. Please migrate to v2.",
  "migration_guide": "https://docs.[company].com/api/migration/v1-to-v2",
  "support": "api-support@[company].com"
}

5. Client Communication Templates

Initial Deprecation Notice
Subject: [Action Required] [Service Name] API v[N] Deprecation — Sunset [Date]

Hi [Team / Partner Name],

We are deprecating [Service Name] API v[N], effective [Sunset Date].

What this means for you:
- v[N] continues to work normally until [Sunset Date]
- After [Sunset Date], all v[N] requests return HTTP 410 Gone
- v[N+1] is available today and fully stable

Your current usage: approximately [X] requests/day as of [Date].
Estimated migration effort: [Small: < 1 day | Medium: 1–3 days | Large: 3–10 days]

Migration resources:
  Migration guide:  [URL]
  Changelog:        [URL]
  Office hours:     [Date/Time/Link]
  Support:          [Slack channel or email]

Key dates:
  [Date]          Deprecation announced (today)
  [Date]          New consumer onboarding blocked for v[N]
  [Date]          30-day warning sent to remaining consumers
  [Sunset Date]   v[N] returns 410 Gone

Reply to this message or contact us at [channel] with questions.

[Your Name], [Team Name]
30-Day Warning
Subject: [30 Days Remaining] [Service Name] API v[N] sunsets [Date]

Hi [Team / Partner Name],

[Service Name] API v[N] sunsets in 30 days on [Date].

Your current v[N] traffic: [X] requests/day — migration is not yet complete.

If you have a technical blocker requiring an extension, contact us before
[Date minus 14 days]. Extensions require a documented blocker and a committed
migration completion date.

Migration guide: [URL] | Support: [channel]

6. Migration Guide Template

Publish one migration guide per version transition at docs.[company].com/api/migration/v[N]-to-v[N+1].

# Migration Guide: v[N] → v[N+1]

**Estimated effort:** [Small: < 1 day | Medium: 1–3 days | Large: 3–10 days]
**Breaking changes in this guide:** [count]

## Quick Start

Update your base URL:
  Before: https://api.[company].com/v[N]/
  After:  https://api.[company].com/v[N+1]/

## Breaking Changes

### 1. [Field Rename: user_name → username]

**Affected endpoints:** `GET /users/{id}`, `POST /users`

Before (v[N]):
{ "user_name": "alice" }

After (v[N+1]):
{ "username": "alice" }

Migration: Replace all references to `user_name` with `username` in request
builders and response parsers.

### 2. [Next breaking change — repeat structure]

## New Capabilities in v[N+1]

| Feature | Description | Docs |
|---------|-------------|------|
| [Feature name] | [Brief description] | [Link] |

## SDK Upgrade Reference

| Language | Package | v[N+1] Version | Install Command |
|----------|---------|----------------|-----------------|
| Python | `[company]-sdk` | `2.0.0` | `pip install [company]-sdk==2.0.0` |
| Node.js | `@[company]/sdk` | `2.0.0` | `npm install @[company]/[email protected]` |
| Go | `github.com/[company]/sdk-go` | `v2.0.0` | `go get github.com/[company]/sdk-go/v2` |
| Java | `com.[company]:sdk` | `2.0.0` | Update pom.xml / build.gradle |

## Migration Validation Checklist

- [ ] Base URL updated to v[N+1]
- [ ] All renamed fields updated in request serializers
- [ ] All renamed fields updated in response deserializers
- [ ] Error-handling code updated for new error shape
- [ ] Integration tests passing against v[N+1] in staging
- [ ] Load test completed against v[N+1] — latency within acceptable range
- [ ] Rollback plan documented if issues arise post-cutover

7. Version-Specific Documentation

  • Maintain separate documentation pages for each Stable and Deprecated version.
  • Deprecated version docs carry a persistent banner: "This version is deprecated. Sunset date: [Date]. [Migrate to v[N+1]]."
  • OpenAPI specs, Protobuf definitions, or GraphQL schemas are tagged and archived per version in the repository under /api/v[N]/.
  • A root-level CHANGELOG.md records every breaking and non-breaking change by version — not buried in commit history.

8. SDK Versioning Alignment

API Version SDK Major Version SDK GA Date SDK EOL Date
v[1] 1.x [Date] [API Sunset + 90 days]
v[2] 2.x [Date] Active
  • SDK major versions align 1:1 with API major versions.
  • SDK minor versions track non-breaking API additions.
  • SDK EOL dates trail API sunset dates by 90 days to give consumers extra runway.
  • SDKs emit a runtime deprecation warning log line when the underlying API version is Deprecated.

Strategy authored by [Team Name] — questions to [Slack channel or email]


Anti-Patterns

  • Do not classify expanding an enum (new response values) as non-breaking — clients with exhaustive switch statements will break when they receive an unexpected enum value
  • Do not set a sunset date without confirming it is achievable for the largest consumer — a sunset that forces consumers to miss a legal deadline will be ignored or escalated
  • Do not maintain more than two simultaneous stable/deprecated versions — each additional supported version multiplies maintenance burden and consumer confusion
  • Do not use "monitor traffic" as the sole mechanism for knowing when all consumers have migrated — track named consumers against migration completion explicitly
  • Do not skip the migration guide — consumers will delay migration indefinitely without a step-by-step guide that estimates effort

Quality Checks

  • Versioning scheme recommendation includes explicit rationale tied to the API type and consumer type provided — not a generic recommendation
  • Breaking-change table covers at minimum: field removal, field rename, type change, making optional field required, endpoint removal, enum expansion, and default value change
  • Deprecation timeline durations are filled in with concrete values, not left as abstract placeholders
  • All three communication artifacts are present: initial deprecation notice, 30-day warning, and migration guide template
  • Sunset response headers (Deprecation, Sunset, Link) use correct RFC date format and real URL structure
  • SDK versioning alignment table is present and ties SDK major versions explicitly to API major versions
  • Maximum simultaneous supported versions is stated with a concrete number
1---
2name: api-versioning-strategy
3description: "Write an API versioning strategy document for a service or API platform. Use when asked to define versioning policy, plan API deprecation, classify breaking changes, or document version lifecycle. Produces a complete versioning strategy with breaking-change classification table, deprecation timeline, migration guide template, and client communication template."
4---
5 
6# API Versioning Strategy
7 
8Produce a complete API versioning strategy document that gives a service team durable, consistent rules for evolving their API without breaking consumers. This document covers the versioning scheme selection (with rationale), lifecycle policy from introduction through sunset, a precise breaking-change classification, and all the communication artifacts a team needs when deprecating a version. Engineers should be able to hand this document to a new team member or external consumer and have them understand exactly what to expect.
9 
10## Required Inputs
11 
12Ask for these if not already provided:
13- **API type** — REST, GraphQL, or gRPC (each has different versioning mechanics)
14- **Current versioning approach** — URL path (`/v1/`), request header, query parameter, or none; if none, document starts fresh
15- **Number of existing versions and active consumer count** — needed to size the lifecycle policy and migration scope
16- **Deprecation timeline constraints** — any hard deadlines (contract SLAs, compliance windows, annual release cycles)
17- **Consumer type** — internal teams only, external partners, public API, or mix (affects communication channel choices)
18 
19If any input is missing, ask before producing the document. For GraphQL, note that the versioning approach differs substantially (schema evolution over versioning) and tailor the scheme section accordingly.
20 
21## Output Format
22 
23---
24 
25# API Versioning Strategy: [Service Name]
26 
27**Owner:** [Team Name]
28**API Type:** [REST / GraphQL / gRPC]
29**Document Version:** 1.0
30**Last Reviewed:** [Date]
31**Next Review:** [Date + 6 months]
32 
33---
34 
35## 1. Versioning Scheme
36 
37### Selected Approach: [URL Path / Request Header / Query Parameter]
38 
39| Scheme | Example | Pros | Cons | Verdict |
40|--------|---------|------|------|---------|
41| URL Path | `/v2/orders` | Visible in logs and bookmarks; trivial to route | Violates strict REST resource identity; clutters URL space | **Recommended for public-facing REST APIs** |
42| `Accept` Header | `Accept: application/vnd.[service].v2+json` | Keeps URLs clean; proper content negotiation | Harder to test in browser; less visible in logs | Recommended for internal APIs with controlled clients |
43| Query Parameter | `/orders?version=2` | Easy to retrofit without URL restructuring | Often missed in client code; cache-key complications | Acceptable only for read-heavy APIs already in production |
44| GraphQL Schema Evolution | Field deprecation + `@deprecated` directive | No versioning needed for additive changes | Requires disciplined schema design | **Recommended for GraphQL APIs** |
45 
46**Rationale for [chosen scheme]:** [One paragraph explaining why this scheme fits the API type, consumer type, and operational context provided. Reference the specific inputs — e.g., "Because this API has external partners who integrate via generated clients, URL path versioning provides the most predictable routing behavior and eliminates header negotiation complexity."]
47 
48### Version Format
49 
50```
51[Base URL]/v{MAJOR}/{resource}
52 
53Examples:
54 https://api.[company].com/v1/orders
55 https://api.[company].com/v2/orders/{id}/items
56 
57Version identifier: integer only (v1, v2, v3)
58No minor versions in the URL — minor/patch changes are non-breaking and deployed continuously.
59```
60 
61---
62 
63## 2. Version Lifecycle Policy
64 
65### Lifecycle Stages
66 
67```
68 STABLE ──────────────────────────────────────────────────►
69 │
70 ├─ STABLE Active development, full SLA, new consumers allowed
71 │
72 ├─ DEPRECATED Announced, timeline posted, migration docs live.
73 │ New consumers blocked. Existing consumers receive warnings.
74 │
75 ├─ SUNSET Requests return HTTP 410 Gone + migration pointer.
76 │ 30-day window before routing is removed.
77 │
78 └─ RETIRED Routing removed, docs archived, no traffic accepted.
79```
80 
81| Stage | Duration | SLA Applies | New Consumers Allowed | Required Action |
82|-------|----------|-------------|----------------------|-----------------|
83| Stable | Until superseded | Yes — full | Yes | None |
84| Deprecated | [12 months / adjust per constraint] | Yes — degraded acceptable | No | Migrate before sunset date |
85| Sunset | 30-day window | Best-effort only | No | Migrate immediately |
86| Retired | Permanent | None | No | — |
87 
88**Minimum Stable Period:** A version must remain Stable for at least [6 / 12] months before deprecation can be announced.
89 
90**Maximum Simultaneous Versions:** No more than [2] versions in Stable or Deprecated status at any time. Releasing v3 requires committing to a sunset date for v1 in the same announcement.
91 
92---
93 
94## 3. Breaking vs. Non-Breaking Change Classification
95 
96Apply this table before every API change. If a change is marked Breaking, it requires a new major version. When uncertain, default to Breaking.
97 
98| Change Type | Specific Example | Classification | Rationale |
99|-------------|-----------------|----------------|-----------|
100| Remove a response field | Delete `order.legacy_id` from response | **Breaking** | Clients reading this field will null-pointer or fail |
101| Rename a field | `user_name` → `username` | **Breaking** | Clients referencing old name receive null |
102| Change field type | `"amount": "10.00"` → `"amount": 10.00` | **Breaking** | Type mismatch at deserialization |
103| Make optional field required | `email` required in POST body | **Breaking** | Existing callers omitting it receive 400 |
104| Remove an endpoint | `DELETE /v1/widgets/{id}` removed | **Breaking** | Existing callers receive 404 |
105| Change HTTP method | `GET /search` → `POST /search` | **Breaking** | Bookmarked or cached GET calls fail |
106| Change authentication scheme | API key → OAuth2 | **Breaking** | All clients must re-authenticate |
107| Restructure error response shape | Error JSON schema changed | **Breaking** | Error-handling code misparses responses |
108| Expand enum values (response) | New `status: "on_hold"` value returned | **Breaking** | Switch statements with no default fall through |
109| Change pagination defaults | `page_size` default 20 → 50 | **Breaking** | Response length changes unexpectedly |
110| Tighten input validation | Max length 100 → 50 | **Breaking** | Previously valid inputs now rejected |
111| Add new optional field to response | Add `order.tax_breakdown` | Non-Breaking | Clients ignore unknown fields per spec |
112| Add new optional request parameter | Add `?include_archived=true` | Non-Breaking | Ignored by existing clients |
113| Add a new endpoint | `GET /v1/orders/{id}/audit` | Non-Breaking | No existing client references it |
114| Relax input validation | Min length 10 → 5 | Non-Breaking | Existing valid inputs remain valid |
115| Performance or latency improvement | Response time reduced | Non-Breaking | — |
116| Add new enum value (request-only) | Accept new `type: "express"` | Non-Breaking | Existing values still accepted |
117 
118---
119 
120## 4. Deprecation Process
121 
122### Step-by-Step Deprecation Checklist
123 
124- [ ] **T-0 (Decision day):** Engineering lead approves deprecation. New version confirmed Stable. Sunset date set.
125- [ ] **T-0:** Update API docs — add deprecation banner to all v[N] endpoint pages.
126- [ ] **T-0:** Add `Deprecation` and `Sunset` response headers to all v[N] responses (see format below).
127- [ ] **T-0:** Block new consumer onboarding for v[N] in API gateway and developer portal.
128- [ ] **T-0:** Send initial deprecation notice to all registered consumers (see Section 5 template).
129- [ ] **T-0:** Open tracking issue in engineering backlog linking all known consumers to their migration status.
130- [ ] **T minus 30 days:** Send 30-day warning to all consumers still sending v[N] traffic.
131- [ ] **T minus 7 days:** Send final warning. If consumer traffic > 100 req/day, escalate directly to their engineering lead.
132- [ ] **Sunset date:** Switch v[N] routing to return `HTTP 410 Gone` with body pointing to migration guide.
133- [ ] **T plus 30 days:** Remove routing rules. Archive documentation. Close tracking issue.
134 
135### Deprecation Response Headers
136 
137```http
138HTTP/1.1 200 OK
139Deprecation: true
140Sunset: Sat, 01 Jan 2027 00:00:00 GMT
141Link: <https://docs.[company].com/api/migration/v1-to-v2>; rel="successor-version"
142```
143 
144### Sunset Response Body
145 
146```http
147HTTP/1.1 410 Gone
148Content-Type: application/json
149 
150{
151 "error": "api_version_sunset",
152 "message": "API v1 was sunset on 2027-01-01. Please migrate to v2.",
153 "migration_guide": "https://docs.[company].com/api/migration/v1-to-v2",
154 "support": "api-support@[company].com"
155}
156```
157 
158---
159 
160## 5. Client Communication Templates
161 
162### Initial Deprecation Notice
163 
164```
165Subject: [Action Required] [Service Name] API v[N] Deprecation — Sunset [Date]
166 
167Hi [Team / Partner Name],
168 
169We are deprecating [Service Name] API v[N], effective [Sunset Date].
170 
171What this means for you:
172- v[N] continues to work normally until [Sunset Date]
173- After [Sunset Date], all v[N] requests return HTTP 410 Gone
174- v[N+1] is available today and fully stable
175 
176Your current usage: approximately [X] requests/day as of [Date].
177Estimated migration effort: [Small: < 1 day | Medium: 1–3 days | Large: 3–10 days]
178 
179Migration resources:
180 Migration guide: [URL]
181 Changelog: [URL]
182 Office hours: [Date/Time/Link]
183 Support: [Slack channel or email]
184 
185Key dates:
186 [Date] Deprecation announced (today)
187 [Date] New consumer onboarding blocked for v[N]
188 [Date] 30-day warning sent to remaining consumers
189 [Sunset Date] v[N] returns 410 Gone
190 
191Reply to this message or contact us at [channel] with questions.
192 
193[Your Name], [Team Name]
194```
195 
196### 30-Day Warning
197 
198```
199Subject: [30 Days Remaining] [Service Name] API v[N] sunsets [Date]
200 
201Hi [Team / Partner Name],
202 
203[Service Name] API v[N] sunsets in 30 days on [Date].
204 
205Your current v[N] traffic: [X] requests/day — migration is not yet complete.
206 
207If you have a technical blocker requiring an extension, contact us before
208[Date minus 14 days]. Extensions require a documented blocker and a committed
209migration completion date.
210 
211Migration guide: [URL] | Support: [channel]
212```
213 
214---
215 
216## 6. Migration Guide Template
217 
218Publish one migration guide per version transition at `docs.[company].com/api/migration/v[N]-to-v[N+1]`.
219 
220```markdown
221# Migration Guide: v[N] → v[N+1]
222 
223**Estimated effort:** [Small: < 1 day | Medium: 1–3 days | Large: 3–10 days]
224**Breaking changes in this guide:** [count]
225 
226## Quick Start
227 
228Update your base URL:
229 Before: https://api.[company].com/v[N]/
230 After: https://api.[company].com/v[N+1]/
231 
232## Breaking Changes
233 
234### 1. [Field Rename: user_name → username]
235 
236**Affected endpoints:** `GET /users/{id}`, `POST /users`
237 
238Before (v[N]):
239{ "user_name": "alice" }
240 
241After (v[N+1]):
242{ "username": "alice" }
243 
244Migration: Replace all references to `user_name` with `username` in request
245builders and response parsers.
246 
247### 2. [Next breaking change — repeat structure]
248 
249## New Capabilities in v[N+1]
250 
251| Feature | Description | Docs |
252|---------|-------------|------|
253| [Feature name] | [Brief description] | [Link] |
254 
255## SDK Upgrade Reference
256 
257| Language | Package | v[N+1] Version | Install Command |
258|----------|---------|----------------|-----------------|
259| Python | `[company]-sdk` | `2.0.0` | `pip install [company]-sdk==2.0.0` |
260| Node.js | `@[company]/sdk` | `2.0.0` | `npm install @[company]/[email protected]` |
261| Go | `github.com/[company]/sdk-go` | `v2.0.0` | `go get github.com/[company]/sdk-go/v2` |
262| Java | `com.[company]:sdk` | `2.0.0` | Update pom.xml / build.gradle |
263 
264## Migration Validation Checklist
265 
266- [ ] Base URL updated to v[N+1]
267- [ ] All renamed fields updated in request serializers
268- [ ] All renamed fields updated in response deserializers
269- [ ] Error-handling code updated for new error shape
270- [ ] Integration tests passing against v[N+1] in staging
271- [ ] Load test completed against v[N+1] — latency within acceptable range
272- [ ] Rollback plan documented if issues arise post-cutover
273```
274 
275---
276 
277## 7. Version-Specific Documentation
278 
279- Maintain separate documentation pages for each Stable and Deprecated version.
280- Deprecated version docs carry a persistent banner: "This version is deprecated. Sunset date: [Date]. [Migrate to v[N+1]]."
281- OpenAPI specs, Protobuf definitions, or GraphQL schemas are tagged and archived per version in the repository under `/api/v[N]/`.
282- A root-level CHANGELOG.md records every breaking and non-breaking change by version — not buried in commit history.
283 
284---
285 
286## 8. SDK Versioning Alignment
287 
288| API Version | SDK Major Version | SDK GA Date | SDK EOL Date |
289|-------------|------------------|-------------|--------------|
290| v[1] | 1.x | [Date] | [API Sunset + 90 days] |
291| v[2] | 2.x | [Date] | Active |
292 
293- SDK major versions align 1:1 with API major versions.
294- SDK minor versions track non-breaking API additions.
295- SDK EOL dates trail API sunset dates by 90 days to give consumers extra runway.
296- SDKs emit a runtime deprecation warning log line when the underlying API version is Deprecated.
297 
298---
299 
300*Strategy authored by [Team Name] — questions to [Slack channel or email]*
301 
302---
303 
304## Anti-Patterns
305 
306- [ ] Do not classify expanding an enum (new response values) as non-breaking — clients with exhaustive switch statements will break when they receive an unexpected enum value
307- [ ] Do not set a sunset date without confirming it is achievable for the largest consumer — a sunset that forces consumers to miss a legal deadline will be ignored or escalated
308- [ ] Do not maintain more than two simultaneous stable/deprecated versions — each additional supported version multiplies maintenance burden and consumer confusion
309- [ ] Do not use "monitor traffic" as the sole mechanism for knowing when all consumers have migrated — track named consumers against migration completion explicitly
310- [ ] Do not skip the migration guide — consumers will delay migration indefinitely without a step-by-step guide that estimates effort
311 
312## Quality Checks
313 
314- [ ] Versioning scheme recommendation includes explicit rationale tied to the API type and consumer type provided — not a generic recommendation
315- [ ] Breaking-change table covers at minimum: field removal, field rename, type change, making optional field required, endpoint removal, enum expansion, and default value change
316- [ ] Deprecation timeline durations are filled in with concrete values, not left as abstract placeholders
317- [ ] All three communication artifacts are present: initial deprecation notice, 30-day warning, and migration guide template
318- [ ] Sunset response headers (`Deprecation`, `Sunset`, `Link`) use correct RFC date format and real URL structure
319- [ ] SDK versioning alignment table is present and ties SDK major versions explicitly to API major versions
320- [ ] Maximum simultaneous supported versions is stated with a concrete number
321 
View all files on GitHub →

Details

Updated
Sep 23, 2026
License
MIT
Stars on the repo
★ 1,395
Checked
Source
mohitagw15856/pm-claude-skills ↗
Creator
mohitagw15856 · 193 listings
View creator

Made with api-versioning-strategy

API Versioning Strategy: [Service Name] — Galaxy 3D — fly through all 1170 skills as a glowing constellation you orbit and click into (from the mohitagw15856/pm-claude-skills README)
API Versioning Strategy: [Service Name] — Galaxy 3D — fly through all 1170 skills as a glowing constellation you orbit and click into (from the mohitagw15856/pm-claude-skills README)

by mohitagw15856

API Versioning Strategy: [Service Name] — PM Skills Wrapped — your practice turned into a shareable, Spotify-Wrapped-style story (from the mohitagw15856/pm-claude-skills README)
API Versioning Strategy: [Service Name] — PM Skills Wrapped — your practice turned into a shareable, Spotify-Wrapped-style story (from the mohitagw15856/pm-claude-skills README)

by mohitagw15856

Similar skills

See all →
SkillGuides stable API and interface designaddyosmani/agent-skills · by addyosmaniGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.★ 98.7k GitHub starsMCPPulls up-to-date, version-specific library docsContext7upstash/context7 · by upstashPulls up-to-date, version-specific library docs and code examples into the prompt so the AI stops inventing old APIs.★ 62.3k GitHub starsSkillFetch up-to-date documentation and code examples for anyContext7 Documentation Lookupupstash/context7 · by upstashFetch up-to-date documentation and code examples for any library, framework, SDK, CLI tool, or cloud service. Use whenever the user asks about a specific library — even well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot — because training data may not reflect recent API changes or version updates. Always use for: API syntax questions, configuration options, version migration issues, "how do I" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool usage. Use even when you think you know the answer. Do not rely on training data for API details, signatures, or configuration options — they are frequently out of date. Prefer this over web search for library documentation.★ 62.3k GitHub starsSkillHow to use the Adaptyv Bio Foundry API and Python SDKK-Dense-AI/scientific-agent-skills · by K-Dense-AIHow to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user mentions Adaptyv, Foundry API, protein binding assays, protein screening experiments, BLI/SPR assays, thermostability assays, or wants to submit protein sequences for experimental characterization. Also trigger when code imports `adaptyv`, `adaptyv_sdk`, or `FoundryClient`, or references `foundry-api-public.adaptyvbio.com`.★ 46k GitHub starsSkillMaster C/.NET backend development patterns for buildingwshobson/agents · by wshobsonMaster C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.★ 39.9k GitHub starsSkillGuides the usage of Gemini Interactions API on GeminiGemini Interactions API Skillgoogle/skills · by googleGuides the usage of Gemini Interactions API on Gemini Enterprise Agent Platform. Use when the user wants to use the stateful, server-managed Interactions API for multi-turn conversations, background execution, streaming, structured output, and function calling on the Agent Platform.★ 20.9k GitHub stars

More from mohitagw15856

SkillDesign a 360-degree feedback survey or write a structured360-Degree Feedback Template Skillmohitagw15856/pm-claude-skills · by mohitagw15856Design a 360-degree feedback survey or write a structured 360 feedback report. Use when asked to build a 360 feedback process, write 360 feedback for a colleague, design a feedback survey, or produce a feedback report. Produces either a complete survey instrument with rating scales and open-ended questions, or a structured narrative feedback report with themes, strengths, and development areas.★ 1.4k GitHub starsSkillDesign statistically rigorous A/B tests for product featuresA/B Test Planner Skillmohitagw15856/pm-claude-skills · by mohitagw15856Design statistically rigorous A/B tests for product features, UI changes, onboarding flows, and pricing experiments. Use when asked to set up an experiment, design an A/B test, calculate sample size, or interpret test results. Produces a complete test plan with hypothesis, variant definitions, sample size, duration estimate, guardrail metrics, and a results interpretation guide.★ 1.4k GitHub starsSkillGenerate a WCAG 2.2 accessibility audit checklistAccessibility Audit Skillmohitagw15856/pm-claude-skills · by mohitagw15856Generate a WCAG 2.2 accessibility audit checklist and remediation suggestions for any UI or design. Use when asked to audit for accessibility, check WCAG compliance, review a design for a11y issues, or create an accessibility remediation plan. Produces a prioritised checklist with pass/fail assessments and specific fixes.★ 1.4k GitHub starsSkillBuild a structured account plan for any key customerAccount Plan Skillmohitagw15856/pm-claude-skills · by mohitagw15856Build a structured account plan for any key customer or target account. Use when asked to create an account plan, key account strategy, strategic account review, or territory plan. Produces a complete account plan with relationship map, growth opportunities, risks, and 90-day action plan.★ 1.4k GitHub starsSkillOptimize an article for Answer Engine Optimization so AIAEO Optimizer Skillmohitagw15856/pm-claude-skills · by mohitagw15856Optimize an article for Answer Engine Optimization (AEO) so AI engines like ChatGPT, Perplexity, and Claude can extract, quote, and cite it. Use when asked to AEO-optimize, make content AI-readable, improve AI citation chances, or adapt an article for answer engines. Produces an AEO-optimised rewrite with question headings, 50–80 word answer capsules, a paragraph-length audit, and flagged trust signals.★ 1.4k GitHub starsSkillConduct a structured ethical review of an AI or ML featureAI Ethics Review Skillmohitagw15856/pm-claude-skills · by mohitagw15856Conduct a structured ethical review of an AI or ML feature, model, or product. Use when preparing to deploy an AI system, assessing algorithmic risk, auditing a model for bias, or producing a responsible AI impact assessment. Produces a structured ethics review covering fairness, transparency, privacy, safety, accountability, and societal impact with a risk tier score, pre-deployment checklist, and prioritised mitigations.★ 1.4k GitHub stars