API ReferenceDepartments
Get departments
This API method returns a list of all active departments with their IDs and names.
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/departments"{
"status": "ok",
"data": [
{
"id": "teams-969f8429-7dc3-48a1-96b1-6049a99dda06",
"name": "Dev Team",
"isDefault": false,
"createdAt": "2022-08-22T15:00:00.000Z"
}
]
}{
"status": "error",
"message": "\"startDate\" is required"
}{
"message": "Forbidden"
}{
"message": "Not Found"
}{
"status": "error",
"message": "Failed to list users"
}Need help?
developers@vacationtracker.io