Skip to main content
GET
Retrieve a list of all leave types configured for a company with support for pagination, filtering, and search.

Authentication

Requires authentication with Bearer token. Available to:
  • Super Admin
  • HR Manager
  • Employee
  • Manager

Path Parameters

string
required
The unique identifier of the company (UUID format)Example: "123e4567-e89b-12d3-a456-426614174000"

Query Parameters

integer
Page number for pagination (starts at 1)Default: 1
integer
Number of items per pageDefault: 10
string
Filter by leave type status: active or inactiveExample: "active"
Search by name or code (case-insensitive)Example: "annual"

Response

boolean
Indicates if the request was successful
object
Paginated list of leave types
Combine multiple query parameters to refine your results:
  • Use status=active to see only active leave types
  • Use search=sick to find leave types containing “sick” in name or code
  • Use pagination parameters to control result size