---
title: "List Departments"
method: GET
path: "/coa/api/department"
tags: ["Company Objects"]
---

# List Departments

`GET /coa/api/department`

Retrieve a list of departments with optional filtering and sorting.

        Each department includes metadata about its parent department (`parent`, `parent_name`),
        so parent/child department relationships can be reconstructed from the response.

        Supports including soft-deleted records for audit and recovery purposes.
        When include_deleted=true, returns ONLY deleted records instead of active records.
        Deleted records contain minimal data: 'id', 'is_deleted=true', 'deleted_at' timestamp,
        and 'last_modified_at'. When 'false' or omitted, returns ONLY active records.
        This provides clean separation between active and deleted data.

## Query parameters

- `include_deleted` boolean
- `include_inactive` boolean
- `last_modified_at__gte` string
- `last_modified_at__lte` string
- `limit` integer
- `offset` integer
- `q` string
- `sort` string

## Response `200`

- PaginatedDepartmentList
  - `count` integer, required
  - `next` string, uri, nullable
  - `previous` string, uri, nullable
  - `results` Department[], required
    - `id` integer, required
    - `parent_name` string, required
    - `tags` object[], required
    - `last_modified_at` string, date-time, required
    - `active` boolean
    - `code` string, required
    - `name` string, nullable, required
    - `display_name` string, nullable
    - `tag_ids` integer[]
    - `tag_group_ids` integer[]
    - `created_at` string, date-time, required
    - `customer` integer, required
    - `parent` integer, nullable

---

[API](https://skmtc.net/campfire/apis/campfire-developer-apis.md) · [All operations](https://skmtc.net/campfire/apis/campfire-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/campfire/campfire-developer-apis/versions/6945ebc3180e/schema)
