---
title: "List Departments"
method: GET
path: "/v2/company/{company_id}/departments"
tags: ["Departments"]
---

# List Departments

`GET /v2/company/{company_id}/departments`

## Path parameters

- `company_id` integer, required

## Query parameters

- `modified_since` string
- `cursor` string
- `limit` integer
- `location_id` integer

## Headers

- `x-api-version` string — An API version
- `x-company-guid` string, uuid

## Response `200`

OK

- object
  - `object` 'departments', required
  - `data` object[], required
    - `id` number, required — Department ID
    - `company_id` number, required — Company ID
    - `location_id` number, required — Location ID
    - `name` string, required — Department name
    - `default` boolean, required — If true department is set as the default for the location
    - `deleted` string, nullable, required — If true the location is deleted
    - `created` string, required
    - `modified` string, required
  - `meta` object, required
    - `cursor` object, required
      - `current` string, nullable, required — The current cursor.
      - `prev` string, nullable, required — A cursor for navigating to the previous page.
      - `next` string, nullable, required — A cursor for navigating to the next page.
      - `count` integer, nullable, required — The total items in the current cursor.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `500` — Server Error

---

[API](https://skmtc.net/7shifts/apis/7shifts-api.md) · [All operations](https://skmtc.net/7shifts/apis/7shifts-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/7shifts/7shifts-api/revisions/96a02ef888ab/schema)
