---
title: "department.list"
method: POST
path: "/department.list"
tags: ["Department & Team"]
---

# department.list

`POST /department.list`

Lists all departments.

See the [Pagination and Incremental Synchronization](/docs/pagination-and-incremental-sync) guide for detailed usage examples.

**Requires the [`organizationRead`](authentication#permissions-departmentlist) permission.**

## Request body

- DepartmentListRequest
  - `includeArchived` boolean, nullable — Whether archived departments should be included in the response
  - `cursor` string, nullable — The pagination cursor. Use 'start' for the first page or the nextCursor value from a previous response.
  - `limit` integer, nullable — The maximum number of departments to return per page. Maximum is 100.
  - `syncToken` string, nullable — A sync token to retrieve only departments updated since the last sync. Obtained from a previous list response.

## Response `200`

Responses from the department.list endpoint

- union
  - DepartmentListSuccessResponse
    - `success` true, required
    - `results` Department[], required
      - `id` string, required — The department's unique identifier
      - `name` string, required — The name of the department or team
      - `externalName` string, nullable, required — An alternate candidate-facing name for this department that will be used on Ashby job boards
      - `isArchived` boolean, required — Whether the department has been archived
      - `parentId` string, nullable, required — The id of the department's parent department
      - `createdAt` string, required — The timestamp when the department was created
      - `updatedAt` string, required — The timestamp when the department was last updated
      - `extraData` object, nullable, required — Key-value pairs for your own use and reference. Keys must be at most 100 characters, values at most 512 characters, and total size less than 1kb.
    - `nextCursor` string — Cursor for the next page of results, if available
    - `moreDataAvailable` boolean — Whether more data is available beyond this page
    - `syncToken` string — Sync token to use for future incremental syncs. Only present on the last page.
  - ErrorResponse
    - `success` false, required
    - `errors` ErrorDetail[], required
      - `message` string, required
      - `parameter` string

---

[API](https://skmtc.net/ashbyhq/apis/ashby-api.md) · [All operations](https://skmtc.net/ashbyhq/apis/ashby-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ashbyhq/ashby-api/revisions/778b919dc743/schema)
