---
title: "List all Departments"
method: GET
path: "/api/departments"
tags: ["Departments"]
---

# List all Departments

`GET /api/departments`

## Request

- Base URL: `https://app.timetastic.co.uk` (the document declares no server; this is the origin it was published from)
- URL: `https://app.timetastic.co.uk/api/departments`
- Auth: none declared

Get a collection of departments for your organisation.

## Response `200`

The departments for your organisation.

- TimetasticWebApiResourceModelsDepartment[]
  - `id` integer: The unique Id for this department
  - `organisationId` integer: The organisation Id of this department
  - `name` string, nullable: The department's name
  - `managerId` integer
  - `bossId` integer: The department's boss
  - `createdAt` string, date-time: When the department was created
  - `updatedAt` string, date-time: When the department was last updated
  - `archived` boolean: Whether the department is archived (deleted)
  - `userCount` integer: User count
  - `maxOff` integer: The maximum number of staff allowed off at any one time

## Other responses

- `401`: The request was not authenticated — the API token is missing or invalid.

---

[API](https://skmtc.dev/timetastic/apis/timetastic-api.md) · [All operations](https://skmtc.dev/timetastic/apis/timetastic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/timetastic/apis/timetastic-api/revisions/709ccb0412c3?raw)
