> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ugps.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Token health overview (admin only)

> Operacion: Token health overview (admin only).



## OpenAPI

````yaml /generated/specs/communications.json get /api/omnichannel/auth/health/tokens
openapi: 3.0.0
info:
  title: Raul API - Comunicaciones
  description: >-
    Conversations (threads, mensajes, channel accounts), inbox, omnichannel,
    email sync, WhatsApp, social, spam, tags y solicitudes de borrador con IA.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/omnichannel/auth/health/tokens:
    get:
      tags:
        - Omnichannel
      summary: Token health overview (admin only)
      description: 'Operacion: Token health overview (admin only).'
      operationId: MicrosoftAuthController_getTokenHealth
      parameters: []
      responses:
        '200':
          description: Token health summary
          content:
            application/json:
              schema:
                type: object
                properties:
                  total:
                    type: number
                  healthy:
                    type: number
                  requiresReauth:
                    type: number
                  failedRefreshOver24h:
                    type: number
                  expiringWithin2h:
                    type: number
                  refreshTokenNearExpiry:
                    type: number
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Token de sesión Better Auth para rutas de backoffice; las rutas de
        portal usan su token propio.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.