---
title: "Get all departments of a company"
method: GET
path: "/v1/companies/{company_uuid}/departments"
tags: ["Departments"]
---

# Get all departments of a company

`GET /v1/companies/{company_uuid}/departments`

## Request

- Base URL: `https://api.gusto-demo.com`
- URL: `https://api.gusto-demo.com/v1/companies/{company_uuid}/departments`
- Auth: HTTP bearer

Get all of the departments for a given company with the employees and contractors assigned to that department.

scope: `departments:read`

## Path parameters

- `company_uuid` string, required

## Headers

- `X-Gusto-API-Version` '2026-06-15'

## Response `200`

Success

- Department[]
  - `version` string: The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information on how to use this field.
  - `uuid` string: The UUID of the department
  - `company_uuid` string: The UUID of the company
  - `title` string: Name of the department
  - `employees` object[]: Array of employees assigned to the department.
    - `uuid` string
  - `contractors` object[]: Array of contractors assigned to the department.
    - `uuid` string

## Other responses

- `404`: Not Found The requested resource does not exist. Make sure the provided UUID is valid.

---

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