GET
/
leave_types
curl --request GET \
  --url https://api.absentify.com/api/v1/leave_types \
  --header 'X-API-KEY: <api-key>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "color": "<string>",
    "icon": "<string>",
    "needs_approval": true,
    "deleted": true,
    "deleted_at": "2023-11-07T05:31:56Z",
    "deleted_by": {
      "id": "<string>",
      "name": "<string>",
      "email": "<string>"
    },
    "maximum_absent": true,
    "leave_unit": "days",
    "position": 123,
    "take_from_allowance": true,
    "privacy_hide_leavetype": true,
    "outlook_synchronization_show_as": "free",
    "outlook_synchronization_subject": "<string>",
    "allowance_type": {
      "id": "<string>",
      "name": "<string>",
      "ignore_allowance_limit": true,
      "allowance_unit": "days"
    }
  }
]

Authorizations

X-API-KEY
string
header
required

Response

200
application/json
Successful response
id
string
required
name
string
required
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