Skip to content
Support

Versioning and deprecation

Owner, AdminLast checked 25 November 20261 min readArticle ID: developers-versioning
On this page

The API version is in the URL. Additive changes happen within v1. Breaking changes need a new version and are announced in the changelog first.

The version is in the URL

The major version is the first part of the path: /api/v1/.... There's no version header. A new major version would be served beside the old one, at /api/v2/....

What can change within v1

These are additive and can happen at any time:

  • a new endpoint or a new optional query parameter
  • a new field in a response
  • a new value in a list of values (a new invoice status, a new webhook event)
  • a new optional field in a request
  • a new scope
  • a new error.code for a situation that already had that HTTP status

So write your client to ignore fields it doesn't know, to treat an unknown value as "other", and to branch on error.code with a default case.

What needs a new version

A breaking change is only made in a new major version, never in place: removing or renaming an endpoint, field or parameter, changing a field's type, meaning or units, making an optional field required, or changing authentication or the error envelope.

Deprecation

When something in v1 is to be replaced, the change is announced in the changelog before it takes effect.

Nothing in v1 is deprecated today.

A change needed to fix a security problem can be made at once, and is described in the changelog afterwards.

In this section