> ## 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.

# Enviar template de WhatsApp

> Operacion: Enviar template de WhatsApp.



## OpenAPI

````yaml /generated/specs/communications.json post /api/omnichannel/send-whatsapp-template
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/send-whatsapp-template:
    post:
      tags:
        - Omnichannel
      summary: Enviar template de WhatsApp
      description: 'Operacion: Enviar template de WhatsApp.'
      operationId: OmnichannelWhatsAppController_sendWhatsAppTemplate
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendWhatsAppTemplateDto'
      responses:
        '201':
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    SendWhatsAppTemplateDto:
      type: object
      properties:
        to:
          type: string
          description: 'Numero de telefono destino (ej: 56912345678)'
        template_name:
          type: string
          description: Nombre del template aprobado en Meta
        language_code:
          type: string
          description: 'Codigo de idioma del template (ej: "es", "en_US")'
        components:
          description: Componentes del template con parametros
          type: array
          items:
            type: string
        thread_id:
          type: string
          description: >-
            ID del thread de conversacion (si existe). Para WhatsApp suele
            coincidir con el numero de telefono.
        preview_text:
          type: string
          description: Vista previa legible del mensaje template con variables resueltas
        client_id:
          type: string
          description: ID del cliente asociado al envio
          example: d2f3d9f2-2b4a-4c8e-a2cf-bc2a7f8f1234
        contact_id:
          type: string
          description: ID del contacto asociado al envio
          example: 8f4b2e31-7a8d-4e4a-9f2f-1a2b3c4d5e6f
        opportunity_id:
          type: string
          description: ID del negocio asociado al envio
          example: 1a6e3c12-9f4a-4a1b-b2c3-9d8e7f6a5b4c
        quote_id:
          type: string
          description: ID de la cotización asociada al envío
      required:
        - to
        - template_name
        - language_code
  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.