# Deprecation and Sunset Policy

Kamera-ichi versions its API in the URL path (`/api/v1`, `/v1`) and never makes breaking changes inside a published version.

## Guarantees

1. Additive changes (new endpoints, new optional fields) can ship at any time and are not breaking.
2. A breaking change requires a new major version path, for example `/api/v2`.
3. A deprecated endpoint keeps working for at least 180 days after the deprecation announcement.

## Response headers

Deprecated endpoints return:

- `Deprecation: true` — the endpoint is deprecated (RFC 9745).
- `Sunset: <HTTP-date>` — the date after which the endpoint stops responding (RFC 8594).
- `Link: <successor-url>; rel="successor-version"` — the replacement endpoint.
- `Deprecation-Policy: https://kamera-ichi.com/deprecation-policy` — returned on every API response.

## Current status

No Kamera-ichi API version or field is deprecated. `v1` is the current and only version.

## Notifications

Deprecations are published in the [changelog](https://kamera-ichi.com/changelog) and announced to registered API clients by email at their registration address.
