Skip to content

Leave typesPro

GET /org/leave-types

The leave types your organisation offers, with the default (usually Annual Leave) first.

Terminal window
curl https://api.myfolke.com/api/v1/org/leave-types \
-H "Authorization: Bearer YOUR_KEY" \
-H "Accept: application/json"
{
"data": [
{ "id": 1, "name": "Annual Leave", "colour": "#627E54", "isDefault": true },
{ "id": 2, "name": "Sick Leave", "colour": "#B5654A", "isDefault": false }
]
}
Field What it is
id Matches type.id on leave.
name As your team sees it in Folke.
colour The colour Folke shows it in, or null.
isDefault The type whose allowance is everybody’s main one.

Still stuck? Email hey@myfolke.com.