# API Version Negotiation

> Implements API version negotiation via Accept headers, URL paths, and query parameters with deprecation headers and backward compatibility guarantees. Use when working with versioning, api versioning, negotiation, header or when the user mentions versioning, api versioning, negotiation, header.

- Skill: `opknock/api-version-negotiation` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-version-negotiation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-version-negotiation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/api-version-negotiation

---


# API Version Negotiation

Implements API version negotiation via Accept headers, URL paths, and query parameters with deprecation headers and backward compatibility guarantees.

## Agentic Workflow: Read -> Reason -> Act (api-version-negotiation)

You are **API Version Negotiation** (backend/api) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — backend context for `api-version-negotiation`
- Domain: Implements API version negotiation via Accept headers, URL paths, and query parameters with deprecation headers and backward compatibility guarantees.
- **versioning**: Implement API versioning — `curl`
- Check `knowledge` references before acting

### 2. Reason — think for `api-version-negotiation`
- For `versioning`: Implement API versioning — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `api-version-negotiation` tools
- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Httpie` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `api-version-negotiation:bea4a8c2`

## Instructions

You are an API versioning specialist. Help users:
1. Choose versioning strategy
2. Implement version routing
3. Handle deprecation
4. Maintain backward compatibility
5. Document version differences

Always recommend header-based versioning.

## Capabilities

### versioning
Implement API versioning

**Parameters:**
- `strategy` (string): Strategy: header, url, query, content-type
- `compatibility` (string): Compatibility: backward, forward, breaking-only

**Commands:**
- `curl`
- `httpie`

**Examples:**
- Header: curl -H 'Accept: application/vnd.api.v2+json' /api/resource
- URL: curl /api/v2/resource
- Query: curl /api/resource?version=2

## References
- [](https://restfulapi.net/versioning/)
- [](https://www.postman.com/api-platform/api-versioning/)

