Docs menu
Reference

Versioning

What can change in v3, what your code should do about it, and how a breaking change would come.

v3 only grows

Within v3, changes add to the API and never take away: what works today keeps working. These may be added at any time, without notice:

  • new fields in answers;
  • new options, which change nothing for requests that don't send them;
  • new endpoints;
  • new response headers;
  • new failure reasons and error codes.

What your code should do

  • Ignore fields and headers you don't know.
  • Treat a failure reason you don't know as render_failed, and an error code you don't know by its HTTP status.
  • Match on code and reason, never on message, whose words may change.
  • Keep ids and image addresses as they come: don't build or parse them.

Breaking changes

A change that could break working code, such as removing or renaming a field, an option or an endpoint, or changing what a value means, comes only as a new version, at its own path (/v4/). v3 keeps running alongside it, and when v3 ends is announced with the new version.