---
title: "Obter por ID"
method: GET
path: "/v1/department/{id}"
tags: ["Equipes"]
---

# Obter por ID

`GET /v1/department/{id}`

## Path parameters

- `id` string, uuid, required

## Query parameters

- `includeDetails` 'All' | 'Agents' | 'Channels'

## Response `200`

Success

- PublicDepartmentDTO
  - `id` string, uuid
  - `companyId` string, uuid
  - `createdAt` string, date-time
  - `directLinks` object, nullable
  - `updatedAt` string, date-time
  - `name` string, nullable
  - `isDefault` boolean
  - `distribuitionEnabled` boolean
  - `restrictionType` 'NONE' | 'DEPARTMENT_RESTRICTION' | 'USER_RESTRICTION'
  - `distributionConfig` DepartmentDetailsDistributionConfigDTO
    - `expirationIsEnabled` boolean
    - `maximumDurationInMinutes` integer
    - `inactivityTimeInMinutes` integer
  - `agents` PublicDepartmentAgentDTO[], nullable
    - `userId` string, uuid
    - `departmentId` string, uuid
    - `isAgent` boolean
    - `isSupervisor` boolean
  - `channels` DepartmentChannelDTO[], nullable
    - `id` string, uuid
    - `number` string, nullable
    - `name` string, nullable
    - `type` string, nullable
  - `description` string, nullable
  - `isPrivate` boolean

## Other responses

- `500` — Server Error

---

[API](https://skmtc.net/helena/apis/core.md) · [All operations](https://skmtc.net/helena/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/helena/core/versions/811b2cdd2ec2/schema)
