PreviewAPI version 0.4.0

Versioning

What the version number means, what counts as a breaking change, and how removals are announced.

The API's contract is the OpenAPI document the reference is built from. Its version is 0.4.0. Only the operations in that document are covered by the rules below. Anything else our own apps call can change at any time without notice.

Two version numbers

The /api/v1 in every path changes only for a break that can't be made in place. None has needed it so far. The contract version, shown at the top of each page here, moves with every change to the document.

While the version starts with 0

The API is in preview, so a breaking change raises the middle number, from 0.1.x to 0.2.0. A breaking change is one that could stop working code from working:

  • an endpoint or field removed or renamed;
  • a field's type narrowed, or a new required parameter;
  • a field that keeps its name and type but starts meaning something different.

Anything else raises the last number: a new endpoint, a new optional field or parameter, or a clearer description. Write your code to ignore fields it doesn't know.

A response can carry fields the reference doesn't list. Those aren't part of the contract: they can change or disappear in any version, so don't build on them.

At 1.0 the API moves to strict semantic versioning, and a breaking change raises the first number.

Removing things

Before something is removed it is marked deprecated in the reference, and its responses carry Deprecation and Sunset headers. It is removed no sooner than the next breaking version. Once the API has named outside users, removal also waits at least 90 days.