# Support departments

`GET /v1/ticket/departments` · scope `tickets:read`

Departments that receive tickets (`id` is used as `dept_id` when creating a ticket).

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/ticket/departments` |
| Method | `GET` |
| Scope | `tickets:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (no body) |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

This route takes no parameters.

## Example request

```bash
curl "https://api.tino.vn/v1/ticket/departments" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` is a token with the scope `tickets:read`.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.support.list_departments()`, Node.js `await client.support.listDepartments();`, PHP `$client->support->listDepartments();`.

## Example response

```json
{
 "departments": [
  {
   "id": "2",
   "name": "Phòng hỗ trợ kỹ thuật",
   "description": "Nơi tiếp nhận những yêu cầu hỗ trợ kỹ thuật. Khách hàng có thể liên hệ trực tiếp qua hotline 0364.333.333 nhấn phím 2 hoặc email user@example.com trong trường hợp khẩn cấp.",
   "allow_priority": true
  },
  {
   "id": "3",
   "name": "Phòng Kinh Doanh",
   "description": "Nơi tiếp nhận và giải quyết những vấn đề liên quan đến báo giá, hợp đồng và dịch vụ. Khách hàng có thể liên hệ trực tiếp hotline 0364.333.333 nhấn phím 1 hoặc email user@example.com trong trường hợp khẩn cấp.",
   "allow_priority": false
  },
  "… 5 more item(s)"
 ]
}
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
