---
title: "Consulta un agente"
method: GET
path: "/api/v1/agentes/{idAgente}"
tags: ["Agentes"]
---

# Consulta un agente

`GET /api/v1/agentes/{idAgente}`

Devuelve la información del agente a partir de su **id**.

**Notas:**
- Devuelve únicamente los agentes **activos**: un agente inactivo responde **404**, igual que un agente inexistente.


**Requisitos:**
- `agentes_read`

## Path parameters

- `idAgente` integer, required

## Response `200`

OK

- AgenteResponseApiResponse
  - `datos` AgenteResponse
    - `idAgente` integer
    - `nombreUsuario` string, nullable
    - `email` string, nullable
    - `roles` string[], nullable

## Other responses

- `404` — Not Found

---

[API](https://skmtc.net/mobiliagestion/apis/mobilia-public-api.md) · [All operations](https://skmtc.net/mobiliagestion/apis/mobilia-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mobiliagestion/mobilia-public-api/versions/acbeb97ad5a7/schema)
