API ReferenceLeavetypes
Get leave types
This API method returns a list of all leave types with their IDs, names, and basic info.
Authorization
apiKeyAuth x-api-key<token>
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/leave-types"[
{
"status": "ok",
"data": [
{
"id": "88681ca1-4a47-4e4d-bc35-ffff86c0f54e",
"name": "Team B",
"color": "FF0000",
"isActive": true
}
]
}
]{
"status": "error",
"message": "\"startDate\" is required"
}{
"message": "Forbidden"
}{
"message": "Not Found"
}{
"status": "error",
"message": "Failed to list users"
}Need help?
developers@vacationtracker.io