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

# List departments

`GET /organization/structure/api/departments`

List departments.

## Response `200`

OK

- object
  - `items` V4Department[]
    - `id` integer
    - `name` string
    - `code` string — Unique code of this department.
    - `description` string, nullable — Optional description of the department.
    - `parentId` string — Hierarchy ID of the parent department. Null if this department is at root-level.
    - `parentLuccaId` integer, nullable
    - `hierarchy` string — A value that describes where a department sits in the organization tree. It encodes the department’s position and parent/child relationships, allowing the system to determine ancestors, descendants, and ordering within the hierarchy. You may refer to the Microsoft documentation about [hierarchyid](https://learn.microsoft.com/en-us/sql/relational-databases/hierarchical-data-sql-server) for more information. You should treat it as an opaque hierarchical path value—use it only for storage, comparison, and API calls, and do not attempt to parse or construct it yourself. Example `hierarchyId` values: - '/1/' - '/1/1/' - '/1/1/2/' - '/1/1/2.5/' - '/1/1/3/' - '/1/3/'
    - `isActive` boolean — When false, then the department should no longer be used.
    - `headId` integer, nullable — ID of the employee at the head of this department.
    - `createdAt` string, date-time — Timestamp (with offset) of the moment this department was created.
    - `lastModifiedAt` string, date-time — Timestamp (with offset) of the moment this department was last modified.
    - `sortOrderInSiblings` integer, nullable
  - `count` integer
  - `prev` string, nullable
  - `next` string, nullable

---

[API](https://skmtc.net/luccasoftware/apis/lucca-expenses.md) · [All operations](https://skmtc.net/luccasoftware/apis/lucca-expenses/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/luccasoftware/lucca-expenses/revisions/110f9897756c/schema)
