Vacation Tracker Docs
API ReferenceDepartments

Get departments

This API method returns a list of all active departments with their IDs and names.

GET
/v1/departments

Authorization

apiKeyAuth
x-api-key<token>

In: header

Response Body

application/json

curl -X GET "https://api.vacationtracker.io/v1/departments"
{
  "status": "ok",
  "data": [
    {
      "id": "teams-969f8429-7dc3-48a1-96b1-6049a99dda06",
      "name": "Dev Team",
      "isDefault": false,
      "createdAt": "2022-08-22T15:00:00.000Z"
    }
  ]
}
Empty
Empty