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

# Forzar sincronización de emails

> Operacion: Forzar sincronización de emails.



## OpenAPI

````yaml /generated/specs/communications.json post /api/omnichannel/auth/microsoft/sync
openapi: 3.0.0
info:
  title: Raul API - Comunicaciones
  description: Inbox, omnichannel, bandejas compartidas, email sync, WhatsApp, spam y tags.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/omnichannel/auth/microsoft/sync:
    post:
      tags:
        - Omnichannel
      summary: Forzar sincronización de emails
      description: 'Operacion: Forzar sincronización de emails.'
      operationId: MicrosoftAuthController_syncEmails
      parameters:
        - name: days
          required: false
          in: query
          description: 'Cantidad de días a sincronizar (default: 30)'
          schema:
            type: number
      responses:
        '200':
          description: Sincronización completada
          content:
            application/json:
              schema:
                type: object
                properties:
                  synced:
                    type: number
                    example: 15
                    description: Emails sincronizados
                  errors:
                    type: number
                    example: 0
                    description: Emails con error
        '401':
          description: No autenticado
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication

````