---
title: "List departments"
method: GET
path: "/{domain}/v1/departments"
tags: ["Discovery"]
---

# List departments

`GET /{domain}/v1/departments`

## Request

- Base URL: `https://api.teamohana.us` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teamohana.us/{domain}/v1/departments`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/teamohana/apis/teamohana-public-api/docs/:domain/v1/departments/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns all departments with their parent division. Use the returned id to filter GET /v1/headcount by department.

## Path parameters

- `domain` string, required

## Response `200`

List of departments with division info.

- object[]: List of departments for the org.
  - `id` string, uuid, required: UUID
  - `name` string, required: Display name
  - `division-id` string, uuid, nullable: Parent division UUID. Nil if not linked to a division.
  - `division-name` string, nullable: Parent division display name.

## Other responses

- `401`: Request does not contain valid credentials.

---

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