Deprecation (RFC 9745) and Sunset
(RFC 8594) headers, and it keeps answering until the sunset date.
This is the deprecation policy. Agents can rely on it.
Versioning
The current version is v1, addressed at:/v2 (or later) rather than by changing /v1. Clients pin the path they
were built against.
The OpenAPI description of this version is at
https://api.getcargo.io/openapi.json
and at https://www.getcargo.ai/openapi.json.
What is not a breaking change
These are additive and can appear on/v1 without a new version:
- A new endpoint.
- A new optional request field. Existing clients that do not send it keep working.
- A new field on a response. Clients must ignore fields they do not recognise; treating the JSON as a closed object is the thing that breaks.
- A new optional header.
Deprecation policy
When an operation on a published version is going to be removed:- The operation is marked
deprecatedin the OpenAPI document. - Every response from that operation carries the
Deprecationheader (RFC 9745). The value is an HTTP-date: the moment deprecation began. - Once a removal date is fixed, the same responses also carry the
Sunsetheader (RFC 8594). The value is an HTTP-date: the moment the operation will stop being served. - There are at least 180 days between the
Deprecationdate and theSunsetdate. The operation keeps answering, with both headers, until sunset. - After sunset the path returns
410 Gone. A new version of the same capability, if any, lives on a new path.
/v1 operation is deprecated. The headers above
appear only when one is.
A Link header with rel="deprecation" or rel="sunset" may point at
this page for the human-readable explanation of a specific retirement.
Headers
Example of a response for an operation that was deprecated on 1 August 2026
and will be removed on 28 January 2027:
Sunset date. Prefer its
replacement, named in the OpenAPI description of that operation, as soon as
Deprecation appears.
Current versions
There is no v0 and no unversioned REST surface.
/v1 is the first public
version and it is not deprecated.
