API versioning

Runa uses versioning to improve our API contracts without affecting existing users.

When we need to introduce a backwards-incompatible change, we will create a new date version which clients can migrate to when ready. The changelog provides you an overview of all the changes across the API versions.

What is the latest version?

The latest version is 2023-07-27.

Which version am I using?

Your version is stored in your account when you call the API for the very first time. This version is automatically applied to your API calls in the future.

📘

X-Api-Version response header

If you have any uncertainty regarding the API version, checking the X-Api-Version response header will provide the necessary clarification. This header provides the specific version information associated with the API endpoint you are interacting with.

Setting your API version

Even though a version is stored on your account when you call the API for the first time, it is highly recommended to always specify the API version you intend to use. You can set the API version by including the x-api-version request header.

The value of the header should be set to the dated version of the API version you intend to call. E.g. 2023-07-27.

Backwards-compatible changes

Runa considers the following changes to be backwards-compatible:

  1. Adding new API resources.
  2. Adding new optional request parameters to existing API methods.
  3. Adding new properties to existing API responses.
  4. Changing the order of properties in existing API responses.

We regularly introduce such backwards-compatible changes to our API to support new product features. These should not affect existing integrations so we can introduce them directly to all versions. This avoids clients having to upgrade to a newer version to utilise the new functionality.

Upgrading your API version

If you’re running an older version of the API, upgrade to the latest version to take advantage of new functionality or to streamline responses so the API is faster for you. We recommend to follow these steps to successfully upgrade your API version:

  1. Refer to changelog to see what contract changes the new version introduces. You can also view the full documentation for a chosen version using the dropdown within the menu.
  2. Development: Set the x-api-version header to the newer version on affected endpoints. Modify your code as per the new API contracts.
  3. Test & release: Test the changes in our demo environment, then release to production.
  4. Optionally: Notify our support team and we'll update your account to the newer version as a default version. If you are always setting a version header in your requests, this is entirely optional.

If you encounter any issues or have questions during the API version upgrade process, feel free to contact [email protected] for assistance . We are here to help and provide guidance to ensure a smooth transition.

Why do the API URLs include "/v2"?

The URL version is expected to stay as "v2" for the foreseeable future. This is a reference to the second version of the Runa API, an evolved version what was formerly known as the Connect API to existing API customers.