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

The response is of type object[].