Leave Requests
List Leave Requests
Retrieve a paginated list of leave requests with filtering options
GET
Overview
Retrieve all leave requests with support for pagination and filtering by employee, status, and date range. Managers and HR can view all requests, while employees see only their own requests.Authentication
Requires authentication with Bearer token. Available to:- SuperAdmin
- HR Manager
- Manager
- Employee (limited to own requests)
Query parameters
integer
default:"1"
Page number for pagination
integer
default:"10"
Number of items per page (max: 100)
string
Filter by employee UUID. Employees can only filter by their own ID.
string
Filter by request status. Available values:
pending- Awaiting approvalapproved- Approved by managerrejected- Rejected by managercancelled- Cancelled by systemwithdrawn- Withdrawn by employee
Response
boolean
Indicates if the request was successful
object
Pagination wrapper containing leave requests
Filtering examples
Use cases
Manager dashboard
Retrieve all pending leave requests for team members to review and approve
Employee history
View personal leave history filtered by status and date range
HR reporting
Generate reports on leave usage across the organization
Team calendar
Display approved leave requests for team scheduling
Performance tip: Use pagination with reasonable page sizes (10-50 items) for optimal performance. The API enforces a maximum page size of 100.