---
title: "Retrieve a list of ATS departments"
method: GET
path: "/ats/departments"
tags: ["atsDepartments"]
---

# Retrieve a list of ATS departments

`GET /ats/departments`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/ats/departments`
- Auth: HTTP bearer

Returns a paginated list of all departments configured in the organization's ATS. Use it to resolve the department IDs accepted by the `department_ids` filter when listing jobs and by job creation, and page through results with the `cursor` and `limit` query parameters.

 **Token scopes**: `ats:read`, `worker:read`

## Query parameters

- `cursor` string
- `limit` integer
- `include_archived` string

## Response `200`

Successful response with departments data

- AtsDepartmentsRetrieveAListOfAtsDepartmentsResponse200
  - `data` AtsDepartmentsGetResponsesContentApplicationJsonSchemaDataItems[], required: Page of departments.
    - `id` string, uuid, required: Unique identifier for the department
    - `name` string, required: Name of the department
    - `created_at` string, date-time, required: Timestamp when the department was created
    - `updated_at` string, date-time, required: Timestamp when the department was last updated
    - `archived_at` string, date-time, nullable: Timestamp when the department was archived; null while the department is active and selectable
  - `has_more` boolean, required: Indicates if there are more departments available
  - `next_cursor` string, nullable, required: Cursor for pagination to get the next set of results; null when there are no more pages
  - `total_count` integer, required: Total number of departments available

## Other responses

- `400`: Operation failed.
- `401`: Operation failed.
- `403`: Forbidden. ATS is not enabled for this organization or insufficient permissions.
- `404`: Operation failed.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/ats-endpoints.md) - [All operations](https://skmtc.dev/deel/apis/ats-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/ats-endpoints/revisions/fa660c0a7bfd?raw)
