---
title: "GET Leaves"
method: GET
path: "/leaves?access_token=xxxxxxx"
---

# GET Leaves

`GET /leaves?access_token=xxxxxxx`

## Request

- Base URL: `https://www.humanity.com/api/v2`
- URL: `https://www.humanity.com/api/v2/leaves?access_token=xxxxxxx`
- Auth: API key in query parameter `access_token`

/leaves
Permission level: 7

## Query parameters

- `start_date` string
- `end_date` string
- `mode` string
- `user_id` integer
- `sortby` string
- `deleted` integer
- `force_user_timezone` integer
- `location` integer
- `position` integer
- `page` integer
- `limit` integer

## Response `200`

200

- object
  - `status` integer
  - `data` object[]
    - `id` string
    - `user` string
    - `store` string
    - `date` string
    - `requested_on` object
      - `id` integer
      - `month` integer
      - `day` integer
      - `wday` integer
      - `year` integer
      - `weekday` string
      - `mname` string
      - `week` integer
      - `dayid` integer
      - `timeid` integer
      - `timeid_exact` integer
      - `formatted` string
      - `time` string
      - `timestamp` integer
      - `hours` integer
      - `minutes` integer
      - `seconds` integer
      - `date` string
      - `day_of_year` string
      - `week_adjusted` integer
      - `sp_wday` integer
    - `approved_on` string
    - `status` string
    - `admin` string
    - `comments` string
    - `notes` string
    - `start_day` object
      - `id` integer
      - `month` integer
      - `day` integer
      - `wday` integer
      - `year` integer
      - `weekday` string
      - `mname` string
      - `week` integer
      - `dayid` integer
      - `timeid` integer
      - `timeid_exact` integer
      - `formatted` string
      - `time` string
      - `timestamp` integer
      - `hours` integer
      - `minutes` integer
      - `seconds` integer
      - `date` string
      - `day_of_year` string
      - `week_adjusted` integer
      - `sp_wday` integer
    - `end_day` object
      - `id` integer
      - `month` integer
      - `day` integer
      - `wday` integer
      - `year` integer
      - `weekday` string
      - `mname` string
      - `week` integer
      - `dayid` integer
      - `timeid` integer
      - `timeid_exact` integer
      - `formatted` string
      - `time` string
      - `timestamp` integer
      - `hours` integer
      - `minutes` integer
      - `seconds` integer
      - `date` string
      - `day_of_year` string
      - `week_adjusted` integer
      - `sp_wday` integer
    - `requested_on_timestamp` string
    - `start_timestamp` string
    - `end_timestamp` string
    - `leave_type` string
    - `approved_by` string
    - `rejected_by` string
    - `rejected_on` string
    - `reason` string
    - `employee_name` string
    - `leave_type_name` unknown
    - `employee` string
    - `until` object
      - `id` integer
      - `month` integer
      - `day` integer
      - `wday` integer
      - `year` integer
      - `weekday` string
      - `mname` string
      - `week` integer
      - `dayid` integer
      - `timeid` integer
      - `timeid_exact` integer
      - `formatted` string
      - `time` string
      - `timestamp` integer
      - `hours` integer
      - `minutes` integer
      - `seconds` integer
      - `date` string
      - `day_of_year` string
      - `week_adjusted` integer
      - `sp_wday` integer
    - `total_days` integer
    - `length` integer
    - `total_days_alotted` integer
  - `token` string

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `ffb87b44c733`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/humanity-com/apis/humanity/changes/leaves%3Faccess_token=xxxxxxx/get.md)

---

[API](https://skmtc.dev/humanity-com/apis/humanity.md) - [All operations](https://skmtc.dev/humanity-com/apis/humanity/llms.txt) - [OpenAPI document](https://skmtc.dev/humanity-com/apis/humanity/revisions/ffb87b44c733?raw)
