Get leave requests
get_leavesFetch leave requests for any employee or the whole organization across a date range, with automatic paging through results and optional employee filtering.
Instructions
Fetch leave requests across the organization from Keka for a date range. Automatically pages through the entire result set and returns it combined. The 'from'..'to' range cannot exceed 60 days (validated before calling Keka; defaults to the last 30 days if both are omitted). Each request's numeric status field (0-4) is preserved as returned by the API - Keka's docs don't publish a label mapping for it, so no guessed label is added (unlike timesheet status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date (e.g. 2026-06-30). Defaults to today if omitted. | |
| from | No | Start date (e.g. 2026-06-01). Defaults to 30 days before 'to' if omitted. | |
| pageSize | No | Page size used internally per request to Keka (max 200, default 100). | |
| employeeIds | No | Comma-separated Keka employee IDs to filter by. |