# List departments

`GET https://api.cademi.com.br/api/v3/support/departments`

Operation ID: `departments.list` · API v3

Returns all support departments of the current account in a single response. Each department includes the number of tickets assigned to it in `tickets_count`.

Required permissions: `departments.read`.

## Responses

### 200

Returns the collection of departments.

Body: `data`: array of Department.

Fields of Department:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `id` | string | yes |  |
| `name` | string | yes |  |
| `object` | string, one of `department` | yes |  |
| `revision` | string | yes |  |
| `tickets_count` | integer | yes |  |
| `updated_at` | string (date-time) | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
