Versions and deprecation
How the HTTP API changes, and how long an old version keeps working after a breaking change.
All routes of the HTTP API are below /v1. The version is in the path, and there is no version header.
Changes without notice
These changes come in /v1 at any time, without notice:
- A new route.
- A new optional field in a response.
- A new optional parameter or field in a request.
Write your client so that it ignores a field that it does not know.
Breaking changes
A breaking change comes under a new prefix, such as /v2. Examples of a breaking change: a route is removed, a field is removed or renamed, the type of a field changes, or a parameter becomes necessary.
- The old version keeps working for at least 90 days after the new version ships.
- During that time each response of the old version has two headers:
- The docs announce the change, with what changes and the date of the sunset.
After the sunset date, the routes of the old version can stop at any time.