---
title: "Obtener Estadisticas Auth"
method: GET
path: "/api/auth/admin/stats"
tags: ["auth", "auth"]
---

# Obtener Estadisticas Auth

`GET /api/auth/admin/stats`

Obtiene estadísticas del sistema de autenticación (solo admins)

**🔒 Endpoint Protegido:** Requiere autenticación JWT y rol 'admin'

## Response `200`

Successful Response

- SessionStats
  - `total_sesiones_activas` integer, required
  - `usuarios_activos` integer, required
  - `tokens_recuperacion_pendientes` integer, required
  - `sesiones_por_usuario` object, required
  - `session_ttl_hours` integer, required

---

[API](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api.md) · [All operations](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hogarsolar/hogarsolar-backend-api/revisions/d9861e46bef8/schema)
