---
title: "List departments with filtering and pagination"
method: GET
path: "/os/v1/departments"
tags: ["Department", "Department"]
---

# List departments with filtering and pagination

`GET /os/v1/departments`

Retrieves a paginated list of departments with optional filtering by name and external code.

## Query parameters

- `name` string
- `externalCode` string
- `page` number
- `maxPageSize` number

## Response `200`

Departments retrieved successfully

## Other responses

- `400` — Bad Request - Invalid query parameters
- `401` — Unauthorized - Invalid or missing token
- `500` — Internal Server Error - Unexpected failure

---

[API](https://skmtc.net/gupy/apis/gupy-public-api.md) · [All operations](https://skmtc.net/gupy/apis/gupy-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupy/gupy-public-api/revisions/3f26defa2a42/schema)
