---
title: "Get all Leave balances"
method: GET
path: "/time/leavebalance"
tags: ["LeaveBalance"]
---

# Get all Leave balances

`GET /time/leavebalance`

## Request

- Base URL: `https://{company}.keka.com/api/v1`
- URL: `https://{company}.keka.com/api/v1/time/leavebalance`
- Auth: OAuth 2
  - Implicit: `https://login.kekad.com/connect/authorize`

Get all the leave balances

## Query parameters

- `employeeIds` string
- `leaveTypeIds` string
- `pageNumber` integer
- `pageSize` integer

## Response `200`

Success

- EmployeeLeaveBalanceListItemPagedResponse: class represents paged response.
  - `succeeded` boolean: Gets or sets a value indicating whether this Keka.API.Web.Core.Response`1 is succeeded.
  - `message` string, nullable: Gets or sets the message.
  - `errors` string[], nullable: Gets or sets the errors.
  - `data` EmployeeLeaveBalanceListItem[], nullable: Gets or sets the data.
    - `employeeIdentifier` string, uuid
    - `employeeNumber` string, nullable
    - `employeeName` string, nullable
    - `leaveBalance` LeaveBalanceListItem[], nullable
      - `leaveTypeId` string, uuid
      - `leaveTypeName` string, nullable
      - `accruedAmount` number, double
      - `consumedAmount` number, double
      - `availableBalance` number, double
      - `annualQuota` number, double
  - `pageNumber` integer: Gets or sets the page number.
  - `pageSize` integer: Gets or sets the size of the page.
  - `firstPage` string, uri, nullable: Gets or sets the first page.
  - `lastPage` string, uri, nullable: Gets or sets the last page.
  - `totalPages` integer: Gets or sets the total pages.
  - `totalRecords` integer: Gets or sets the total records.
  - `nextPage` string, uri, nullable: Gets or sets the next page.
  - `previousPage` string, uri, nullable: Gets or sets the previous page.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/keka/apis/leave.md) - [All operations](https://skmtc.dev/keka/apis/leave/llms.txt) - [OpenAPI document](https://skmtc.dev/keka/apis/leave/revisions/8ba3582d4f47?raw)
