Skip to main content
GET
Get all leave types

Authorizations

X-API-KEY
string
header
required

Query Parameters

locale
enum<string>
Available options:
en,
de,
fr,
hu,
it,
pl,
pt,
ru,
es,
tr,
uk

Response

Successful response

id
string
required
name
string
required

Translated into locale when one is given and a translation exists, otherwise the stored name.

default_name
string
required

The stored name, without any translation applied.

createdAt
string
required
updatedAt
string
required
color
string
required
icon
string
required
needs_approval
boolean
required
deleted
boolean
required
deleted_at
string | null
required
deleted_by
object | null
required
maximum_absent
boolean
required
leave_unit
enum<string>
required
Available options:
days,
half_days,
hours,
minutes_30,
minutes_15,
minutes_10,
minutes_5,
minutes_1
position
number
required
take_from_allowance
boolean
required
privacy_hide_leavetype
boolean
required
outlook_synchronization_show_as
enum<string>
required
Available options:
free,
tentative,
busy,
oof,
workingElsewhere,
unknown
outlook_synchronization_subject
string | null
required
allowance_type
object | null
required
counts_as_leave
boolean
required
allow_representative_overlap
boolean
required
allow_request_changes
boolean
required

Whether pending and approved requests of this leave type can be changed.

request_shortening_needs_approval
boolean
required

Shortening an approved request needs approval from its approvers when this is on. Off by default: a shortened request applies at once and the days go back to the allowance. Extending or moving always needs approval. When request_cancellation_needs_approval is on and the leave type needs approval (and the cancellation approval feature is on for the workspace), the requester's own shortening needs approval too, whatever this is set to; the stored value is kept. For admins and managers of the requester, shortening follows this setting alone.

request_cancellation_needs_approval
boolean
required

A stored setting. It takes effect only when the cancellation approval feature is on for the workspace and the leave type needs approval: then a member who cancels their own approved request (before it starts) asks their approvers instead, and the final approval cancels it. Through the API the requester has to send accepts_cancellation_request: true to POST /requests/{id}/cancel to ask; when nobody other than the requester would have to approve, the request is cancelled at once. An admin, or a manager cancelling for someone in their department, always cancels at once. While it takes effect, the requester's own shortening of an approved request and switch to a leave type without approval need approval too; admins and managers are not affected. Turning it on without the feature is rejected with 403.