Leave Requests
Request Leave
Submit a new leave request for approval
POST
Overview
Employees can submit leave requests specifying the leave type, dates, and reason. The request enters the approval workflow and deducts from the employee’s available leave balance upon approval.Authentication
Requires authentication with Bearer token. Available to:- Employee
- Manager
Request body
string
required
UUID of the leave type (e.g., Annual Leave, Sick Leave)
string
required
Leave start date in YYYY-MM-DD format (e.g., “2025-02-10”)
string
required
Leave end date in YYYY-MM-DD format (e.g., “2025-02-15”)
number
required
Total number of leave days requested (supports half days with decimal values like 0.5)
string
required
Explanation for the leave request
string
Optional attachment URL (e.g., medical certificate for sick leave)
Response
boolean
Indicates if the request was successful
object
The created leave request object
Leave types
Common leave types include:Annual Leave
Annual Leave
Standard paid vacation time allocated to employees annually. Typically allows carry-forward of unused days.
Sick Leave
Sick Leave
Paid time off for medical reasons. May require medical documentation if configured in the leave type settings.
Unpaid Leave
Unpaid Leave
Time off without pay. No balance deduction required.
Maternity/Paternity Leave
Maternity/Paternity Leave
Extended leave for parents. Paid status and duration vary by company policy.
Validation rules
Approval workflow
Once submitted, leave requests follow this workflow:1
Pending
Request is created with status
pending and awaits manager approval.2
Review
Manager reviews the request and can either approve or reject it.
3
Final status
Request reaches final status:
approved, rejected, or withdrawn (if employee cancels).4
Balance update
If approved, the system deducts days from the employee’s leave balance.