Deprecation Policy

Every API will eventually be deprecated, so having a plan and communicating the deprecation policy with consumers via a dedicated page makes a lot of sense. This page will help API providers think a little bit about the future, and establish some guard rails and channels for communication with consumers.

Also known as: Sunset Policy, End-of-Life, EOL

Example

deprecation-policy.yaml
- type: DeprecationPolicy
  url: https://developers.example.com/deprecation

Standards

HTTP Headers

HeaderDirectionSpecDescription
Sunset response RFC 9745 HTTP-date indicating when the resource will become unresponsive.
Deprecation response draft-ietf-httpapi-deprecation-header Indicates a resource is deprecated; value is the deprecation date or the token "true".
Link response RFC 8288 Carries sunset, deprecation, successor-version, and alternate relations pointing to migration targets.

OpenAPI Expression

Link Relations

Governance Rules

Risk & Compliance

Compliance:

Security: Long-tail use of deprecated endpoints accumulates known vulnerabilities and unsupported authentication patterns. A clear policy with Sunset + Deprecation headers, telemetry on deprecated traffic, and a documented removal date reduces lingering attack surface.

Tools

Suggested Metrics

Example Implementations

Related Properties

Tags


All Common Properties