Docs
Developers

Understand versioning

Learn how the API changes and how to build integrations that keep working.

The version is part of every path: https://app.enlytning.com/api/v1.

Changes within v1

Within v1, the API changes only by adding to it. It can:

  • Add endpoints
  • Add optional query parameters
  • Add fields to responses
  • Add values to fields that list a fixed set, such as status
  • Add error codes

It won’t remove or rename fields, change a field’s type, or make an optional parameter required. Every field is always present, and is null when it doesn’t apply.

Build for additive changes

  • Ignore response fields you don’t use.
  • Handle unknown values in fields that list a fixed set, for example by treating an unknown status as unknown rather than failing.
  • Handle unknown error codes by their type. See Handle errors.

A change that can’t be additive will come in a new version, such as /v2, alongside v1.

On this page