---
title: "Fetch department list."
method: GET
path: "/department/fetch"
tags: ["Employees|Department"]
---

# Fetch department list.

`GET /department/fetch`

This endpoint enables you to retrieve a list of departments. Departments in geoCapture are utilized to assign an
employee to their respective department for efficient management. An example of this could be allocating a
standardized time model for all employees within a specific department. Additionally, departments are utilized in
the approval center. In a department, you can set up inspectors for different types of approval requests,
including absences, sickness, allowances, and stamp requests. This endpoint displays only the department's `id`,
`name`, and its parent department's name. If you wish to modify any other settings, you must do so within
geoCapture.

## Query parameters

- `offset` integer
- `limit` integer

## Response `200`

Success Response:

- StandardDepartmentFetchResponse
  - `data` object[] — The departments.
    - `id` integer — The internal id of the department.
    - `name` string — The name of the department.
    - `parent` string — The name of the departments parent.
  - `offset` integer — Number of skipped records.
  - `totalCount` integer — Total number of available departments. (Only calculated if offset is 0)

---

[API](https://skmtc.net/geocapture/apis/geocapture-api.md) · [All operations](https://skmtc.net/geocapture/apis/geocapture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geocapture/geocapture-api/versions/869b05603541/schema)
