---
title: "Obter por ID"
method: GET
path: "/v1/agent/{id}"
tags: ["Usuários"]
---

# Obter por ID

`GET /v1/agent/{id}`

## Path parameters

- `id` string, uuid, required

## Response `200`

Success

- PublicAgentDTO
  - `id` string, uuid
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `companyId` string, uuid
  - `userId` string, uuid
  - `name` string, nullable
  - `shortName` string, nullable
  - `email` string, nullable
  - `phoneNumber` string, nullable
  - `phoneNumberFormatted` string, nullable
  - `profile` string, nullable
  - `isOwner` boolean
  - `departments` PublicAgentDepartmentDTO[], nullable
    - `agentId` string, uuid
    - `userId` string, uuid
    - `departmentId` string, uuid
    - `isAgent` boolean
    - `isSupervisor` boolean
  - `availability` 'AVAILABLE' | 'UNAVAILABLE' — Enum que representa o status de disponibilidade de um usuário

## Other responses

- `500` — Server Error

---

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