Vacation Tracker Docs
API ReferenceLeavetypes

Get leave types

This API method returns a list of all leave types with their IDs, names, and basic info.

GET
/v1/leave-types

Authorization

apiKeyAuth
x-api-key<token>

In: header

Response Body

application/json

curl -X GET "https://api.vacationtracker.io/v1/leave-types"
[
  {
    "status": "ok",
    "data": [
      {
        "id": "88681ca1-4a47-4e4d-bc35-ffff86c0f54e",
        "name": "Team B",
        "color": "FF0000",
        "isActive": true
      }
    ]
  }
]
Empty
Empty