---
title: "Get a Leave Type"
method: GET
path: "/api/leavetypes/{id}"
tags: ["LeaveTypes"]
---

# Get a Leave Type

`GET /api/leavetypes/{id}`

## Request

- Base URL: `https://app.timetastic.co.uk` (the document declares no server; this is the origin it was published from)
- URL: `https://app.timetastic.co.uk/api/leavetypes/{id}`
- Auth: none declared

Gets a leave type using the ID passed.

## Path parameters

- `id` integer, required

## Response `200`

The leave type.

- TimetasticWebApiResourceModelsLeaveTypeResponse: A representation of a leave type
  - `id` integer
  - `name` string, nullable
  - `organisationId` integer
  - `deducted` boolean: Does this leave type deduct from your allowance
  - `requiresApproval` boolean: Does this leave type require approval, or it is automatically approved
  - `includeMaxOff` boolean: Is this leave type considered in maximum absent restrictions
  - `isPrivate` boolean: Is this leave type private
  - `active` boolean: Is this leave type active?
  - `isInUse` boolean: Is this leave type in use for holiday bookings
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `color` string, nullable: The assigned colour for this leave type
  - `icon` string, nullable: The assigned icon for this leave type
  - `calendarVisibility` 1 | 2 | 3: Whether this leave type is set to "Busy" or "Available" on external calendars - `1` — **Busy** - `2` — **Available** - `3` — **OutOfOffice**
  - `limitHours` number, double, nullable: The limit in hours for this leave type
  - `limitDays` number, double, nullable: The limit in days for this leave type

## Other responses

- `401`: The request was not authenticated — the API token is missing or invalid.
- `403`: The leave type belongs to another organisation.
- `404`: No leave type exists with that ID.

---

[API](https://skmtc.dev/timetastic/apis/timetastic-api.md) · [All operations](https://skmtc.dev/timetastic/apis/timetastic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/timetastic/apis/timetastic-api/revisions/709ccb0412c3?raw)
