---
title: "API versioning and deprecation"
description: "How the orchestkit.dev API signals its version with a dated API-Version header, what counts as a breaking change, the minimum notice window, and how deprecations are announced with Deprecation, Sunset and Link headers."
canonical: "https://orchestkit.dev/docs/guides/api-versioning"
---

# API versioning and deprecation

How the orchestkit.dev API signals its version with a dated API-Version header, what counts as a breaking change, the minimum notice window, and how deprecations are announced with Deprecation, Sunset and Link headers.

The orchestkit.dev docs API (`/api/*`, the MCP endpoint at `/api/mcp`, `/openapi.json`, `/agent/identity` and the `/.well-known/*` cards) is public, read-only and free. This page is the short form; the full policy is at [/api-policy](https://orchestkit.dev/api-policy).

## How the version is signalled

- Every API response carries an `API-Version` header whose value is a date (`YYYY-MM-DD`): the day the current contract took effect. Errors and the MCP endpoint carry it too.
- The OpenAPI document at [/openapi.json](https://orchestkit.dev/openapi.json) states the same date as `info.version`, plus an `x-api-versioning` object with the scheme, the header name and the policy link.
- The major contract is also named in the path: `/api/v1/*` is a stable alias of `/api/*`. The path prefix names the major; the dated header names the revision being served.

## What counts as breaking

Removing or renaming an endpoint, field, parameter or MCP tool; changing a field's type or meaning; making an optional input required; narrowing accepted values; changing status codes or error shapes a client can branch on; tightening rate limits.

Breaking changes never ship in place: they ship under a new `/api/vN` prefix. Additive changes (new endpoints, optional fields, MCP tools) ship without notice and move the `API-Version` date forward.

## Notice window

At least **6 months** between the deprecation announcement and the `Sunset` date. A deprecated endpoint keeps working until then; afterwards it answers `410 Gone` with an RFC 9457 problem body that links the replacement.

## How deprecations are announced

A deprecated endpoint's responses carry three headers:

```http
Deprecation: @1767225600
Sunset: Wed, 01 Jul 2026 00:00:00 GMT
Link: <https://orchestkit.dev/api-policy>; rel="deprecation"; type="text/html"
```

- `Deprecation` follows [RFC 9745](https://www.rfc-editor.org/rfc/rfc9745.html): a Structured Field Date, `@` plus Unix seconds.
- `Sunset` follows [RFC 8594](https://www.rfc-editor.org/rfc/rfc8594.html): an HTTP-date.
- `Link` with `rel="deprecation"` (the relation RFC 9745 registers) points at the policy and migration notes.

The deprecation is also listed in the [changelog](/docs/changelog). Nothing is deprecated today.
