---
title: "List departments | Elenca dipartimenti"
method: GET
path: "/departments"
tags: ["Places"]
---

# List departments | Elenca dipartimenti

`GET /departments`

## Request

- Base URL: `https://app.didattica.polito.it/api`
- URL: `https://app.didattica.polito.it/api/departments`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polito/apis/polito-faculty-api/docs/departments/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `siteId` string
- `departmentType` string

## Response `200`

The request has succeeded.

- object
  - `data` Department[], required
    - `id` string, required
    - `name` string, nullable, required
    - `type` string, required

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `500`: Server error

---

[API](https://skmtc.dev/polito/apis/polito-faculty-api.md) - [All operations](https://skmtc.dev/polito/apis/polito-faculty-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polito/apis/polito-faculty-api/revisions/c29c33e75373?raw)
