---
title: "List departments with people and spend metrics."
method: GET
path: "/departments"
---

# List departments with people and spend metrics.

`GET /departments`

## Query parameters

- `period` 'last_7d' | 'last_30d' | 'last_90d'
- `sort` '-cost' | 'cost' | '-cost_per_person' | 'cost_per_person' | '-users' | 'users' | 'name' | '-name'
- `limit` integer
- `cursor` string

## Headers

- `Oximy-Version` '2026-06-29'

## Response `200`

Departments list.

- object
  - `object` 'list', required
  - `request_id` string, required
  - `as_of` string, date-time, required
  - `data` Department[], required
    - `id` string, required
    - `object` 'department', required
    - `name` string, required
    - `users` number, required
    - `tools` number, required
    - `cost` number, required
    - `currency` 'usd'
    - `cost_per_person` number, required
    - `subscription_spend` number
    - `usage_spend` number
    - `issue_count` number
    - `trend` object
    - `sources` string[], required
  - `has_more` boolean, required
  - `next_cursor` string, nullable, required

## Other responses

- `304` — Not modified. Conditional GET responses do not consume rate-limit quota.
- `400` — Invalid parameters.
- `401` — Missing or invalid API key.
- `403` — The API key does not have the required scope.
- `404` — The requested resource was not found in the calling key's workspace scope.
- `409` — Conflict or idempotency replay conflict.
- `429` — Rate limit exceeded.
- `500` — Unexpected server error.

---

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