---
title: "Returns a specific absence reason"
method: GET
path: "/absences/types/{typeId}"
tags: ["Absence types"]
---

# Returns a specific absence reason

`GET /absences/types/{typeId}`

## Path parameters

- `typeId` integer, required

## Response `200`

Absence reason

- object
  - `data` AbsenceType — Available relations: absences, changelog
    - `id` integer — ID
    - `absences` unknown[] — Absences (relation)
      - unknown
    - `custom_icon_id` integer — Custom icon
    - `name` string — Absence reason
    - `color` string — Color
    - `contrast_color` 'dark' | 'white' — Contrast color
    - `group` 'holiday' | 'sick' | 'other' — Calculated as
    - `first_line` string — First line
    - `icon` string — Icon
    - `source` string — The source of the absence type data
    - `source_external_id` string, nullable — The external ID from the source
    - `created_at` string, date-time — Created
    - `updated_at` string, date-time — Updated

## Other responses

- `401` — The request lacks valid authentication credentials.
- `403` — The token is valid but lacks the permission for this action.
- `404` — The requested resource could not be found.
- `500` — An unexpected error occurred on the server (e.g. a requested relation does not exist).

---

[API](https://skmtc.dev/craftboxx/apis/craftboxx-api-documentation.md) · [All operations](https://skmtc.dev/craftboxx/apis/craftboxx-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/craftboxx/craftboxx-api-documentation/revisions/490934cc6f91/schema)
