---
title: "Get all leave types"
method: GET
path: "/leave_types"
tags: ["Leave types"]
---

# Get all leave types

`GET /leave_types`

Get all leave types

## Query parameters

- `locale` 'en' | 'de' | 'fr' | 'hu' | 'it' | 'pl' | 'pt' | 'ru' | 'es' | 'tr' | 'uk'

## Response `200`

Successful response

- object[]
  - `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, nullable, required
  - `deleted_by` object, nullable, required
    - `id` string, required
    - `name` string, nullable, required
    - `email` string, nullable, required
  - `maximum_absent` boolean, required
  - `leave_unit` 'days' | 'half_days' | 'hours' | 'minutes_30' | 'minutes_15' | 'minutes_10' | 'minutes_5' | 'minutes_1', required
  - `position` number, required
  - `take_from_allowance` boolean, required
  - `privacy_hide_leavetype` boolean, required
  - `outlook_synchronization_show_as` 'free' | 'tentative' | 'busy' | 'oof' | 'workingElsewhere' | 'unknown', required
  - `outlook_synchronization_subject` string, nullable, required
  - `allowance_type` object, nullable, required
    - `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.
    - `ignore_allowance_limit` boolean, required
    - `allowance_unit` 'days' | 'hours', required
  - `counts_as_leave` boolean, required
  - `allow_representative_overlap` boolean, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/absentify/apis/absentify-crud-api.md) · [All operations](https://skmtc.net/absentify/apis/absentify-crud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/absentify/absentify-crud-api/revisions/ef777d51e6f2/schema)
