---
title: "List departments in a country"
method: GET
path: "/v1/countries/{idCountry}/departments"
tags: ["countries"]
---

# List departments in a country

`GET /v1/countries/{idCountry}/departments`

## Request

- Base URL: `https://api.earnation.live` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earnation.live/v1/countries/{idCountry}/departments`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/earnation/apis/earnation-api/docs/v1/countries/:idCountry/departments/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `idCountry` integer, required

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

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