---
title: "List departments"
method: GET
path: "/locale/{locale}/departments"
tags: ["Locale"]
---

# List departments

`GET /locale/{locale}/departments`

## Request

- Base URL: `https://api.myrest.io/api/v1`
- URL: `https://api.myrest.io/api/v1/locale/{locale}/departments`
- Auth: API key in header `X-API-Key`

Returns reservation departments for this locale. Use department IDs when creating reservations.

## Path parameters

- `locale` integer, required

## Response `200`

List of departments

- object
  - `success` boolean
  - `data` Department[]
    - `id` integer
    - `name` string

## Other responses

- `403`: API key not authorized for this locale or missing required scope

---

[API](https://skmtc.dev/myrest/apis/myrest-public-api.md) - [All operations](https://skmtc.dev/myrest/apis/myrest-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myrest/apis/myrest-public-api/revisions/70905e6e4284?raw)
