Reads all Leaves

Reads all Leaves

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
ids[]
array of strings

Return only the leaves with these ids.

ids[]
employee_ids[]
array of strings

Return only the leaves of these employees.

employee_ids[]
leave_type_id[]
array of strings

Return only the leaves of these leave types. Despite the singular name it takes a list.

leave_type_id[]
string

Return only the leaves that had already started by this date (start date on or before it). Usable on its own; pair it with from for a window.

string

Return only the leaves that had not finished before this date, meaning they end on or after it or have no end date at all. Usable on its own; pair it with to for a window.

boolean

Retrieve only active leaves

boolean
required

Whether to include deleted leaves (not included by default if not specified)

boolean

Set to true for leaves that were approved, false for leaves that were rejected. Leave it unset for every leave whatever its decision. Combining approved: true with include_pending: true returns approved and still-pending leaves together.

boolean

Set to true to include leaves still awaiting a decision. On its own it returns ONLY the pending ones; alongside approved: true it returns approved and pending together.

boolean

Retrieve leave types

boolean

Retrieve leave duration

boolean

Retrieve the per-day breakdown of the leave's duration (duration_by_day_attributes)

boolean

Set to true for leaves whose leave type counts as worked time, false for those that do not. Leave it unset to get both.

boolean

Set to true for leaves whose leave type is paid, false for unpaid ones. Leave it unset to get both.

string

Caps the per-day duration walk at this date. For endless leaves (finish_on = nil) it pins the walk end; for closed leaves whose finish_on sits past this date it truncates the walk. Never extends a leave past its real finish_on. Must fall inside the read window (from/to or overlaps_range_from/overlaps_range_to).

Response

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json