Skip to main content

Introduction

The v2 API will be shut down on March 31, 2026, and will no longer respond after this date.
This guide helps you migrate from the deprecated v2 leaves API endpoint to the v3. Why is the v2 deprecated? The v2 leaves API endpoint:
  • suffers from significant performance issues, that also affect other API endpoints;
  • relies on older technology, that may suffer from security vulnerabilities.
Whereas the v3 leaves API endpoint:
  • offers faster response times;
  • gives you additional features (pagination, sorting);
  • shares the same authentication system than v2.
Are you affected by this change? If there’s any HTTP request against the /api/leaves API endpoint in your integration, then you are affected by this and must migrate to /api/v3/leaves before 2026-03-31. Otherwise, you are free to skip this.

Changes

The V3 Leaves API endpoint is documented in the API Reference.

Routes

Query parameters

Note: other query parameters did not change.

Response

In V2, all responses are a JSON object with a data property which is:
  • a JSON object for a response containing a singular resource;
  • a JSON array for a response containing a collection of resources.
In V3, all responses are a JSON object with a data property which is always a JSON object. For collections, it contains an items property, which is a JSON aray which contains the representations of resources in the collection.

Fields

Some of the fields were renamed, moved, removed and/or changed type.
* : Fields related to the leave owner are no longer available in v3 in order to prevent data leaks. You may retrieve them with a complementary request to /api/v3/users.
Note: other fields did not change.

About Leave ID

V2 ABNF Syntax for Leave ID
V3 ABNF Syntax for Leave ID

About Leave Status

V2 Leave Status Enum
V3 Leave Status Enum

Code Examples

JSON Examples

Example Mapper