curl -X GET "https://api.companyflow.com/leave-balance?leaveTypeId=a1b2c3d4-e5f6-7890-abcd-ef1234567890&year=2025" \ -H "Authorization: Bearer YOUR_TOKEN"
{ "success": true, "data": 15.5}
Leave Balances
Check Leave Balance
Check current user’s available leave balance
GET
/
leave-balance
curl -X GET "https://api.companyflow.com/leave-balance?leaveTypeId=a1b2c3d4-e5f6-7890-abcd-ef1234567890&year=2025" \ -H "Authorization: Bearer YOUR_TOKEN"
{ "success": true, "data": 15.5}
Check the available leave balance for the authenticated employee for a specific leave type and year. This endpoint returns the number of available days that can be requested.