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

# Crear template de WhatsApp en Meta

> Operacion: Crear template de WhatsApp. Queda en revisión (PENDING) hasta que Meta lo apruebe.



## OpenAPI

````yaml /generated/specs/communications.json post /api/omnichannel/whatsapp-templates
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/whatsapp-templates:
    post:
      tags:
        - Omnichannel
      summary: Crear template de WhatsApp en Meta
      description: >-
        Operacion: Crear template de WhatsApp. Queda en revisión (PENDING) hasta
        que Meta lo apruebe.
      operationId: OmnichannelWhatsAppController_createWhatsAppTemplate
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWhatsAppTemplateDto'
      responses:
        '201':
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    CreateWhatsAppTemplateDto:
      type: object
      properties:
        name:
          type: string
          description: >-
            Nombre en Meta: minúsculas, dígitos y guiones bajos. Inmutable una
            vez creada.
          example: reapertura_lead_v1
        category:
          type: string
          example: UTILITY
          enum:
            - MARKETING
            - UTILITY
            - AUTHENTICATION
        language:
          type: string
          description: Código de idioma de Meta
          example: es
        components:
          type: array
          items:
            $ref: '#/components/schemas/MetaTemplateComponentDto'
      required:
        - name
        - category
        - language
        - components
    MetaTemplateComponentDto:
      type: object
      properties:
        type:
          type: string
          example: BODY
        format:
          type: string
          example: TEXT
        text:
          type: string
          example: Hola {{1}}, retomamos contacto por {{2}}. Quedo atento.
        example:
          $ref: '#/components/schemas/MetaTemplateExampleDto'
        buttons:
          type: array
          items:
            $ref: '#/components/schemas/MetaTemplateButtonDto'
      required:
        - type
    MetaTemplateExampleDto:
      type: object
      properties:
        header_text:
          type: array
          items:
            type: string
        header_handle:
          type: array
          items:
            type: string
        body_text:
          description: Un array por variante; cada uno con un ejemplo por {{n}}
          example:
            - - Juan
              - coordinar la visita
          type: array
          items:
            type: string
    MetaTemplateButtonDto:
      type: object
      properties:
        type:
          type: string
          example: URL
        text:
          type: string
          example: Ver condiciones
        url:
          type: string
          example: https://ugps.cl/terminos
        phone_number:
          type: string
          example: '+56998012914'
        example:
          type: array
          items:
            type: string
      required:
        - type
  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.