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

# Create New Message

> Create a new message in the conversation.

## WhatsApp Template Messages

For WhatsApp channels, you can send structured template messages using the `template_params` field. 
Templates must be pre-approved in WhatsApp Business Manager.

### Example Templates

**Text with Image Header:**
```json
{
  "content": "Hi your order 121212 is confirmed. Please wait for further updates",
  "template_params": {
    "name": "order_confirmation",
    "category": "MARKETING",
    "language": "en",
    "processed_params": {
      "body": {
        "1": "121212"
      },
      "header": {
        "media_url": "https://picsum.photos/200/300",
        "media_type": "image"
      }
    }
  }
}
```

**Text with Copy Code Button:**
```json
{
  "content": "Special offer! Get 30% off your next purchase. Use the code below",
  "template_params": {
    "name": "discount_coupon",
    "category": "MARKETING",
    "language": "en",
    "processed_params": {
      "body": {
        "discount_percentage": "30"
      },
      "buttons": [{
        "type": "copy_code",
        "parameter": "SAVE20"
      }]
    }
  }
}
```

## WhatsApp Interactive Messages

WhatsApp Cloud inboxes can send reply buttons, a list, a link button, a
media carousel, a Brazilian Pix payment or a location request with the
`interactive` field while the 24-hour customer service window is open.
`content` is the body, and every text field accepts the same variables as
the body. Media (header image/video/document and carousel cards) goes by
public URL, Meta downloads it. Outside the window the message fails like
free text. See the request examples.

WAHA inboxes send interactive messages at any time (no 24-hour window)
once the WAHA server and the account have them on: reply buttons, action
buttons (`cta`: link, call, copy), list, carousel, Pix, order (Review and
Pay), poll, location, event and a reply to a buttons message. See the
`waha_interactive_*` request examples and the `interactive_payload` schema.

UazAPI inboxes also send them at any time once the UazAPI server and the
account have them on, in direct chats and groups: reply buttons, action
buttons, list, poll, carousel (image, video or document cards), Pix button,
payment request (Review and pay with Pix, boleto, link and a document),
event and location request. See the `uazapi_interactive_*` request
examples. A sent payment request is updated with
`POST .../messages/{message_id}/payment_status`.

```json
{
  "content": "Hola {{contact.first_name}}, ¿confirmas tu turno?",
  "interactive": {
    "type": "button",
    "header": "Turno de mañana",
    "footer": "Clínica WiseApp",
    "buttons": ["Confirmar", "Reprogramar"]
  }
}
```




## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
      - $ref: '#/components/parameters/conversation_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Messages
      summary: Create New Message
      description: >
        Create a new message in the conversation.


        ## WhatsApp Template Messages


        For WhatsApp channels, you can send structured template messages using
        the `template_params` field. 

        Templates must be pre-approved in WhatsApp Business Manager.


        ### Example Templates


        **Text with Image Header:**

        ```json

        {
          "content": "Hi your order 121212 is confirmed. Please wait for further updates",
          "template_params": {
            "name": "order_confirmation",
            "category": "MARKETING",
            "language": "en",
            "processed_params": {
              "body": {
                "1": "121212"
              },
              "header": {
                "media_url": "https://picsum.photos/200/300",
                "media_type": "image"
              }
            }
          }
        }

        ```


        **Text with Copy Code Button:**

        ```json

        {
          "content": "Special offer! Get 30% off your next purchase. Use the code below",
          "template_params": {
            "name": "discount_coupon",
            "category": "MARKETING",
            "language": "en",
            "processed_params": {
              "body": {
                "discount_percentage": "30"
              },
              "buttons": [{
                "type": "copy_code",
                "parameter": "SAVE20"
              }]
            }
          }
        }

        ```


        ## WhatsApp Interactive Messages


        WhatsApp Cloud inboxes can send reply buttons, a list, a link button, a

        media carousel, a Brazilian Pix payment or a location request with the

        `interactive` field while the 24-hour customer service window is open.

        `content` is the body, and every text field accepts the same variables
        as

        the body. Media (header image/video/document and carousel cards) goes by

        public URL, Meta downloads it. Outside the window the message fails like

        free text. See the request examples.


        WAHA inboxes send interactive messages at any time (no 24-hour window)

        once the WAHA server and the account have them on: reply buttons, action

        buttons (`cta`: link, call, copy), list, carousel, Pix, order (Review
        and

        Pay), poll, location, event and a reply to a buttons message. See the

        `waha_interactive_*` request examples and the `interactive_payload`
        schema.


        UazAPI inboxes also send them at any time once the UazAPI server and the

        account have them on, in direct chats and groups: reply buttons, action

        buttons, list, poll, carousel (image, video or document cards), Pix
        button,

        payment request (Review and pay with Pix, boleto, link and a document),

        event and location request. See the `uazapi_interactive_*` request

        examples. A sent payment request is updated with

        `POST .../messages/{message_id}/payment_status`.


        ```json

        {
          "content": "Hola {{contact.first_name}}, ¿confirmas tu turno?",
          "interactive": {
            "type": "button",
            "header": "Turno de mañana",
            "footer": "Clínica WiseApp",
            "buttons": ["Confirmar", "Reprogramar"]
          }
        }

        ```
      operationId: create-a-new-message-in-a-conversation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/conversation_message_create_payload'
            examples:
              text:
                summary: Text message
                value:
                  content: Hello, how can I help you?
                  message_type: outgoing
                  private: false
              whatsapp_template:
                summary: WhatsApp template with image header
                value:
                  content: >-
                    Hi your order 121212 is confirmed. Please wait for further
                    updates
                  template_params:
                    name: order_confirmation
                    category: MARKETING
                    language: en
                    processed_params:
                      body:
                        '1': '121212'
                      header:
                        media_url: https://picsum.photos/200/300
                        media_type: image
              whatsapp_direct_send_buttons:
                summary: WhatsApp Direct Send with document header and reply buttons
                description: >
                  WhatsApp Cloud inbox with Direct Send turned on; works outside
                  the 24-hour window.

                  Utility content only. Meta keeps trying for one hour and
                  reuses the `order_update` template.
                value:
                  content: >-
                    Hola {{contact.first_name}}, tu factura del pedido #12345
                    está lista.
                  direct_send:
                    category: utility
                    ttl_seconds: 3600
                    template_name: order_update
                    media:
                      type: document
                      url: https://example.com/invoice-12345.pdf
                      filename: factura-12345.pdf
                    buttons:
                      - Pagar ahora
                      - Hablar con soporte
                    footer: Tienda WiseApp
              whatsapp_direct_send_voice_call:
                summary: WhatsApp Direct Send with a Call on WhatsApp button
                description: >-
                  Needs WhatsApp calling turned on for the inbox. Text header
                  only, no footer.
                value:
                  content: Tu pedido se atrasó. Llamanos y lo resolvemos ahora.
                  direct_send:
                    header: Soporte WiseApp
                    voice_call:
                      text: Llamar a soporte
                      ttl_minutes: 1440
              whatsapp_direct_send_authentication:
                summary: WhatsApp Direct Send authentication code
                description: >
                  Plain text only, for verification codes. Meta has to open
                  authentication

                  messages to the WABA; the contact needs a phone number.
                value:
                  content: Tu código de verificación es 482913. No lo compartas.
                  direct_send:
                    category: authentication
                    ttl_seconds: 300
              whatsapp_interactive_buttons:
                summary: WhatsApp interactive reply buttons with image header
                description: WhatsApp Cloud only, inside the 24-hour window.
                value:
                  content: Hola {{contact.first_name}}, ¿confirmas tu turno de mañana?
                  interactive:
                    type: button
                    media:
                      type: image
                      url: https://example.com/clinic.jpg
                    footer: Clínica WiseApp
                    buttons:
                      - Confirmar
                      - Reprogramar
              whatsapp_interactive_list:
                summary: WhatsApp interactive list
                description: WhatsApp Cloud only, inside the 24-hour window.
                value:
                  content: Elegí el horario que mejor te quede.
                  interactive:
                    type: list
                    header: Turnos disponibles
                    list:
                      button: Ver horarios
                      sections:
                        - title: Mañana
                          rows:
                            - title: '09:00'
                              description: Dra. Gómez
                            - title: '10:30'
              whatsapp_interactive_carousel:
                summary: WhatsApp interactive media carousel
                description: >-
                  WhatsApp Cloud only, inside the 24-hour window. 2 to 10 cards
                  with the same buttons shape.
                value:
                  content: Mirá nuestras novedades de la semana.
                  interactive:
                    type: carousel
                    cards:
                      - media:
                          type: image
                          url: https://example.com/product-1.jpg
                        body: Echeveria azul
                        buttons:
                          - Comprar
                      - media:
                          type: video
                          url: https://example.com/product-2.mp4
                        body: Haworthia cebra
                        buttons:
                          - Comprar
              whatsapp_interactive_pix:
                summary: WhatsApp Pix payment (copia e cola)
                description: >-
                  WhatsApp Cloud only, inside the 24-hour window. The dynamic
                  Pix code comes from your bank or PSP.
                value:
                  content: 'Seu pedido #1234 está pronto. Pague com Pix.'
                  interactive:
                    type: pix
                    pix:
                      code: 00020101021226700014br.gov.bcb.pix2548pix.example.com
                      merchant_name: Loja WiseApp
                      key: '39580525000189'
                      key_type: CNPJ
                      amount: 150.5
              whatsapp_interactive_location:
                summary: WhatsApp location request
                description: WhatsApp Cloud only, inside the 24-hour window.
                value:
                  content: Compartinos tu ubicación para coordinar la entrega.
                  interactive:
                    type: location_request
              waha_interactive_reply_buttons:
                summary: WAHA reply buttons with image header
                description: >-
                  WAHA inboxes with interactive messages on. Up to 3 reply
                  buttons.
                value:
                  content: Hola {{contact.first_name}}, ¿confirmás tu turno de mañana?
                  interactive:
                    type: button
                    header: Turno de mañana
                    media:
                      type: image
                      url: https://example.com/clinic.jpg
                    footer: Clínica WiseApp
                    buttons:
                      - Confirmar
                      - Reprogramar
              waha_interactive_action_buttons:
                summary: WAHA action buttons (link, call, copy)
                description: >-
                  WAHA only. Up to 5 call-to-action buttons, never mixed with
                  reply buttons.
                value:
                  content: 'Tu pedido #12345 fue despachado.'
                  interactive:
                    type: cta
                    header: Pedido despachado
                    footer: Tienda WiseApp
                    actions:
                      - type: url
                        text: Seguir envío
                        url: https://example.com/track/12345
                      - type: call
                        text: Llamar
                        phone_number: '+595981123456'
                      - type: copy
                        text: Copiar cupón
                        copy_code: MEGA10
              waha_interactive_list:
                summary: WAHA list
                description: WAHA only. content is the list description, header its title.
                value:
                  content: Elegí el horario que mejor te quede.
                  interactive:
                    type: list
                    header: Turnos disponibles
                    footer: Clínica WiseApp
                    list:
                      button: Ver horarios
                      sections:
                        - title: Mañana
                          rows:
                            - id: '0900'
                              title: 32400
                              description: Dra. Gómez
                            - id: '1030'
                              title: '10:30'
              waha_interactive_carousel:
                summary: WAHA carousel
                description: >-
                  WAHA only, GOWS engine. Every card needs an image; each card
                  keeps its own buttons.
                value:
                  content: Mirá nuestras novedades de la semana 👟
                  interactive:
                    type: carousel
                    cards:
                      - media:
                          url: https://example.com/sneakers.jpg
                        header: Zapatillas
                        body: Livianas, en 5 colores
                        footer: Envío gratis
                        actions:
                          - type: url
                            text: Comprar
                            url: https://example.com/p/sneakers
                      - media:
                          url: https://example.com/backpack.jpg
                        header: Mochila
                        body: Para notebook de 15"
                        buttons:
                          - La quiero
              waha_interactive_pix:
                summary: WAHA Pix payment
                description: >-
                  WAHA only, GOWS engine. Only the receiver and the key are
                  sent; the buyer types the amount. content is optional and not
                  sent.
                value:
                  interactive:
                    type: pix
                    pix:
                      merchant_name: Loja WiseApp
                      key: '39580525000189'
                      key_type: CNPJ
              waha_interactive_order:
                summary: WAHA order (Review and Pay)
                description: >-
                  WAHA only, GOWS engine. Amounts in reais, WiseApp converts
                  them to cents. content is the buyer note.
                value:
                  content: Obrigado pelo seu pedido!
                  interactive:
                    type: order
                    order:
                      items:
                        - name: Plano mensal
                          amount: 50
                          quantity: 2
                        - name: Instalação
                          amount: 30
                      discount: 10
                      pix:
                        merchant_name: Loja WiseApp
                        key: '39580525000189'
                        key_type: CNPJ
                      instructions: Pague em até 24 horas
              waha_interactive_poll:
                summary: WAHA poll
                description: WAHA only. content is the question; 2 to 12 answers.
                value:
                  content: ¿Qué horario te queda mejor?
                  interactive:
                    type: poll
                    poll:
                      options:
                        - Mañana
                        - Tarde
                        - Noche
                      multiple_answers: false
              waha_interactive_location:
                summary: WAHA location pin
                description: WAHA only. content is the place title.
                value:
                  content: Nuestra tienda del centro
                  interactive:
                    type: location
                    location:
                      latitude: -25.2637
                      longitude: -57.5759
              waha_interactive_event:
                summary: WAHA event
                description: WAHA only, GOWS engine. content is the event name.
                value:
                  content: Lanzamiento de la colección de verano
                  interactive:
                    type: event
                    event:
                      start_time: '2026-11-20T19:00:00-03:00'
                      end_time: '2026-11-20T21:00:00-03:00'
                      location: Av. Mariscal López 1234
                      description: Presentamos la nueva colección. ¡Te esperamos!
                      extra_guests_allowed: true
              waha_interactive_button_reply:
                summary: WAHA reply to a buttons message
                description: >-
                  WAHA only. Answers a buttons message as if the button had been
                  tapped; some engines answer 501 and the message fails.
                value:
                  content: Confirmar
                  interactive:
                    type: button_reply
                    button_reply:
                      id: confirm
                      reply_to: false_595981123456@c.us_AAAAAAAAAAAAAAAAAAAA
              uazapi_interactive_buttons:
                summary: UazAPI reply buttons with image header
                description: >-
                  UazAPI only. Reply buttons (/send/menu type button); the
                  header is media only (image, video or document).
                value:
                  content: Hola {{contact.first_name}}, ¿confirmás tu turno de mañana?
                  interactive:
                    type: button
                    media:
                      type: image
                      url: https://example.com/clinic.jpg
                    footer: Clínica WiseApp
                    buttons:
                      - Confirmar
                      - Reprogramar
              uazapi_interactive_cta:
                summary: UazAPI action buttons (url, call, copy)
                description: >-
                  UazAPI only. Up to 5 call-to-action buttons; WhatsApp Web
                  shows a warning when they are mixed with reply buttons.
                value:
                  content: 'Tu pedido #12345 está listo.'
                  interactive:
                    type: cta
                    footer: Loja WiseApp
                    actions:
                      - type: url
                        text: Ver pedido
                        url: https://example.com/orders/12345
                      - type: call
                        text: Llamar
                        phone_number: '+5511999999999'
                      - type: copy
                        text: Copiar cupón
                        copy_code: MEGA10
              uazapi_interactive_list:
                summary: UazAPI list
                description: >-
                  UazAPI only. Sections and rows go out as /send/menu choices;
                  `|` and line breaks inside titles are replaced by spaces.
                value:
                  content: Elegí un horario para tu turno.
                  interactive:
                    type: list
                    footer: Clínica WiseApp
                    list:
                      button: Ver horarios
                      sections:
                        - title: Mañana
                          rows:
                            - id: slot_0900
                              title: 32400
                              description: Dra. Gómez
                            - id: slot_1030
                              title: '10:30'
                        - title: Tarde
                          rows:
                            - id: slot_1500
                              title: '15:00'
                              description: Dr. Silva
              uazapi_interactive_poll:
                summary: UazAPI poll
                description: >-
                  UazAPI only. content is the question; selectable_count limits
                  how many options can be chosen.
                value:
                  content: ¿Qué horario preferís para la atención?
                  interactive:
                    type: poll
                    poll:
                      options:
                        - Mañana (8h-12h)
                        - Tarde (13h-17h)
                        - Noche (18h-22h)
                      selectable_count: 1
              uazapi_interactive_carousel:
                summary: UazAPI carousel with reply buttons
                description: >-
                  UazAPI only. Image cards with quick replies (/send/carousel);
                  same message as /send/menu type carousel.
                value:
                  content: Conocé nuestros productos
                  interactive:
                    type: carousel
                    cards:
                      - media:
                          type: image
                          url: https://example.com/product-1.jpg
                        header: Smartphone XYZ
                        body: El más avanzado de la línea
                        buttons:
                          - Comprar XYZ
                      - media:
                          type: image
                          url: https://example.com/product-2.jpg
                        header: Notebook ABC
                        body: Ideal para profesionales
                        buttons:
                          - Comprar ABC
              uazapi_interactive_carousel_media:
                summary: UazAPI media carousel with link, copy and call buttons
                description: >-
                  UazAPI only. Cards take an image, a video or a document and up
                  to 3 buttons mixing replies, actions and a link.
                value:
                  interactive:
                    type: carousel
                    cards:
                      - media:
                          type: video
                          url: https://example.com/product-1.mp4
                        body: Mirá el video del producto
                        actions:
                          - type: url
                            text: Ver en el sitio
                            url: https://example.com/xyz
                          - type: copy
                            text: Copiar cupón
                            copy_code: DESCONTO20
                      - media:
                          type: document
                          url: https://example.com/catalogo.pdf
                          filename: Catalogo.pdf
                        body: Catálogo completo
                        buttons:
                          - Quiero comprar
                        actions:
                          - type: call
                            text: Hablar con ventas
                            phone_number: '+5511999999999'
              uazapi_interactive_payment_request:
                summary: UazAPI payment request (Review and pay)
                description: >-
                  UazAPI only. Amount in BRL; Pix key required, boleto, payment
                  link and the attached document are optional.
                value:
                  content: 'Pedido #457 pronto para pagamento'
                  interactive:
                    type: payment_request
                    header: Detalhes do pedido
                    footer: Loja WiseApp
                    media:
                      type: document
                      url: https://example.com/boleto-457.pdf
                      filename: boleto-457.pdf
                    payment:
                      amount: 349.5
                      item_name: Assinatura Plano Ouro
                      invoice_number: PED-457
                      pix:
                        key: '12345678000190'
                        key_type: CNPJ
                        merchant_name: Loja WiseApp LTDA
                      boleto_code: 34191.79001 01043.510047 91020.150008 5 91070026000
              uazapi_interactive_pix:
                summary: UazAPI Pix button
                description: >-
                  UazAPI only. /send/pix-button sends no text: content is not
                  needed. merchant_name defaults to "Pix".
                value:
                  interactive:
                    type: pix
                    pix:
                      key: 123e4567-e89b-12d3-a456-426614174000
                      key_type: EVP
                      merchant_name: Loja WiseApp
              uazapi_interactive_event:
                summary: UazAPI event
                description: >-
                  UazAPI only. content is the event name; end_time cannot
                  precede start_time.
                value:
                  content: Reunión de presentación
                  interactive:
                    type: event
                    event:
                      start_time: '2026-11-20T19:00:00-03:00'
                      end_time: '2026-11-20T20:00:00-03:00'
                      location:
                        name: Sede WiseApp
                        address: Av. Paulista 1000
                      description: Presentamos la nueva colección.
                      has_reminder: true
                      reminder_offset_sec: 3600
              uazapi_interactive_location_request:
                summary: UazAPI location request
                description: >-
                  UazAPI only. WhatsApp adds a "Send location" button; the
                  answer arrives as a location message.
                value:
                  content: Para continuar, tocá el botón y compartí tu ubicación.
                  interactive:
                    type: location_request
              uazapi_interactive_group_poll:
                summary: UazAPI poll in a group conversation
                description: >-
                  UazAPI only. Send it to a group conversation: UazAPI takes the
                  group JID (@g.us); votes arrive as replies from each
                  participant.
                value:
                  content: ¿Qué día hacemos la reunión del equipo?
                  interactive:
                    type: poll
                    poll:
                      options:
                        - Lunes
                        - Miércoles
                        - Viernes
                      multiple_answers: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/generic_id'
                  - $ref: '#/components/schemas/message'
              example:
                id: 1
                content: Sample text
                account_id: 1
                inbox_id: 1
                conversation_id: 1
                message_type: 0
                created_at: 1
                updated_at: 1
                private: true
                status: sent
                source_id: 1
                content_type: text
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Forbidden
        '404':
          description: Conversation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Resource not found
      security:
        - userApiKey: []
        - agentBotApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
    conversation_id:
      in: path
      name: conversation_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the conversation
  schemas:
    conversation_message_create_payload:
      type: object
      required:
        - content
      properties:
        content:
          type: string
          description: The content of the message
          example: Hello, how can I help you?
        message_type:
          type: string
          enum:
            - outgoing
            - incoming
          description: The type of the message
          example: outgoing
        private:
          type: boolean
          description: Flag to identify if it is a private note
          example: false
        content_type:
          type: string
          enum:
            - text
            - input_email
            - cards
            - input_select
            - form
            - article
          description: Content type of the message
          example: text
        content_attributes:
          type: object
          description: >
            Attributes based on the content type. For `input_select`, provide an
            `items` array with

            `title`, `value`, and optional `description`. WhatsApp list messages
            use `description`

            as the row subtitle when present.
          example:
            items:
              - title: Option 1
                value: option_1
                description: Optional WhatsApp list row subtitle
        campaign_id:
          type: integer
          description: The campaign id to which the message belongs
          example: 1
        template_params:
          type: object
          description: WhatsApp template parameters for sending structured messages
          required:
            - name
            - category
            - language
            - processed_params
          properties:
            name:
              type: string
              description: >-
                Name of the WhatsApp template (must be approved in WhatsApp
                Business Manager)
              example: purchase_receipt
            category:
              type: string
              enum:
                - UTILITY
                - MARKETING
                - SHIPPING_UPDATE
                - TICKET_UPDATE
                - ISSUE_RESOLUTION
              description: Category of the template
              example: UTILITY
            language:
              type: string
              description: Language code of the template (BCP 47 format)
              example: en_US
            processed_params:
              type: object
              description: Processed template parameters organized by component type
              properties:
                body:
                  type: object
                  description: Body component parameters with variable placeholders
                  additionalProperties:
                    type: string
                  example:
                    '1': Visa
                    '2': Nike
                    '3': Bill
                header:
                  type: object
                  description: Header component parameters for media templates
                  properties:
                    media_url:
                      type: string
                      format: uri
                      description: >-
                        Publicly accessible URL for IMAGE, VIDEO, or DOCUMENT
                        headers
                      example: >-
                        https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf
                    media_type:
                      type: string
                      enum:
                        - image
                        - video
                        - document
                      description: Type of media for the header
                      example: document
                buttons:
                  type: array
                  description: Button component parameters for interactive templates
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - url
                          - copy_code
                        description: Type of button parameter
                      parameter:
                        type: string
                        description: Dynamic parameter value for the button
                        example: SSFSDFSD
        direct_send:
          $ref: '#/components/schemas/direct_send_payload'
        interactive:
          $ref: '#/components/schemas/interactive_payload'
    generic_id:
      type: object
      properties:
        id:
          type: number
    message:
      type: object
      properties:
        id:
          type: number
          description: The ID of the message
        content:
          type: string
          description: The text content of the message
        account_id:
          type: number
          description: The ID of the account
        inbox_id:
          type: number
          description: The ID of the inbox
        conversation_id:
          type: number
          description: The ID of the conversation
        message_type:
          type: integer
          enum:
            - 0
            - 1
            - 2
            - 3
          description: The type of the message
        created_at:
          type: integer
          description: The time at which message was created
        updated_at:
          type:
            - integer
            - string
          description: The time at which message was updated
        private:
          type: boolean
          description: The flags which shows whether the message is private or not
        status:
          type:
            - string
            - 'null'
          enum:
            - sent
            - delivered
            - read
            - failed
            - null
          description: The status of the message
        source_id:
          type:
            - string
            - 'null'
          description: The source ID of the message
        content_type:
          type:
            - string
            - 'null'
          enum:
            - text
            - input_text
            - input_textarea
            - input_email
            - input_select
            - cards
            - form
            - article
            - incoming_email
            - input_csat
            - integrations
            - sticker
            - voice_call
            - null
          description: The type of the template message
        content_attributes:
          type: object
          description: The content attributes for each content_type
          properties:
            interactive_reply:
              type:
                - object
                - 'null'
              description: >
                Incoming WhatsApp messages (Cloud API, WAHA and UazAPI) that
                answer a list or reply buttons: the option the

                contact picked. `id` is the id the row or button was sent with
                (its title when it was sent without one);

                the message `content` keeps the title.
              properties:
                type:
                  type: string
                  enum:
                    - list
                    - button
                id:
                  type: string
                title:
                  type: string
              example:
                type: list
                id: slot_0900
                title: '09:00'
            social_comment:
              $ref: '#/components/schemas/social_comment'
            in_reply_to:
              type:
                - integer
                - 'null'
              description: >-
                Id of the message this one answers. When it is a Facebook or
                Instagram comment, the message is published as a public reply
                below it.
            private_reply_to:
              type:
                - integer
                - 'null'
              description: >-
                Id of the comment message this direct message is the private
                reply to.
            social_comment_reply:
              type:
                - object
                - 'null'
              description: Set on a public comment reply once Meta publishes it.
              properties:
                platform:
                  type: string
                  enum:
                    - facebook
                    - instagram
                comment_id:
                  type: string
                  description: Meta id of the published reply.
                parent_comment_id:
                  type: string
                  description: Meta id of the comment it answers.
        sender_type:
          type:
            - string
            - 'null'
          enum:
            - Contact
            - User
            - AgentBot
            - Captain::Assistant
            - null
          description: The type of the sender
        sender_id:
          type:
            - number
            - 'null'
          description: The ID of the sender
        external_source_ids:
          type: object
          description: The external source IDs of the message
        additional_attributes:
          type: object
          description: The additional attributes of the message
        processed_message_content:
          type:
            - string
            - 'null'
          description: The processed message content
        sentiment:
          type:
            - object
            - 'null'
          description: The sentiment of the message
        conversation:
          type:
            - object
            - 'null'
          description: The conversation object
        attachment:
          type:
            - object
            - 'null'
          description: The file object attached to the image
        sender:
          type: object
          description: User/Agent/AgentBot object
        sender_category:
          type: string
          enum:
            - contact
            - human
            - bot
            - rule
            - campaign
            - system
          description: >-
            Who wrote the message: `contact` (incoming), `human` (an agent, or a
            WhatsApp message sent from the phone), `bot` (an agent bot, Captain,
            a Flow Builder flow, or no sender), `rule` (an automation rule),
            `campaign` or `system` (an activity)
        campaign:
          type: object
          description: >-
            The campaign that sent the message, only on messages sent by a
            campaign
          properties:
            id:
              type: integer
              description: The display ID of the campaign
            title:
              type: string
              description: The title of the campaign
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    direct_send_payload:
      type: object
      description: >
        Sends the message through Meta's WhatsApp Direct Send (beta): a utility
        or

        authentication message without a pre-approved template, also outside the

        24-hour window. Meta matches or generates the template and bills it at
        the

        category rate. Only WhatsApp Cloud inboxes with Direct Send turned on

        accept it; send utility content only, since marketing content can
        restrict

        the WABA. Attachments are not supported.


        - `utility` (default): plain text, or reply buttons, one link button or
        one
          voice call button (only one of them). Reply and link buttons take an
          optional text or media header and a footer; the voice call button takes a
          text header only and no footer.
        - `authentication`: plain text only, for verification codes. Meta has to
          open it to the WABA, and it can't go to contacts known only by their
          WhatsApp user ID (BSUID).

        Send `{}` for a plain utility text message. Invalid options answer `422`

        with `{ error, code }` (codes such as `invalid_ttl`,
        `invalid_template_name`,

        `conflicting_buttons`, `header_needs_buttons`,
        `authentication_text_only`).
      properties:
        category:
          type: string
          enum:
            - utility
            - authentication
          default: utility
          description: Meta category the message is billed and checked as.
        ttl_seconds:
          type: integer
          minimum: 30
          maximum: 43200
          description: >
            How long WhatsApp keeps trying to deliver the message before
            dropping it.

            Utility: 30 to 43200 seconds (12 hours), Meta's default is 30 days.

            Authentication: 30 to 900 seconds (15 minutes), Meta's default is 10
            minutes.
          example: 3600
        template_name:
          type: string
          pattern: ^[a-z0-9_]+$
          maxLength: 512
          description: >
            Utility only. Meta creates or reuses the template with this exact
            name

            instead of matching one automatically. It must be unique in the WABA
            and

            not clash with a template created outside Direct Send.
          example: order_update
        header:
          type: string
          maxLength: 60
          description: >-
            Text header. Needs reply, link or voice call buttons; not together
            with `media`.
          example: Order update
        media:
          type: object
          description: >-
            Image, video or document header from a public URL (Meta downloads
            it). Needs reply or link buttons.
          required:
            - type
            - url
          properties:
            type:
              type: string
              enum:
                - image
                - video
                - document
            url:
              type: string
              format: uri
              example: https://example.com/invoice-12345.pdf
            filename:
              type: string
              description: File name the customer sees, documents only.
              example: invoice-12345.pdf
          additionalProperties: false
        buttons:
          type: array
          minItems: 1
          maxItems: 3
          description: Reply button titles, all different.
          items:
            type: string
            maxLength: 20
          example:
            - Confirm
            - Reschedule
        link:
          type: object
          description: One call-to-action link button.
          required:
            - text
            - url
          properties:
            text:
              type: string
              maxLength: 20
              example: Track order
            url:
              type: string
              format: uri
              example: https://example.com/orders/12345
          additionalProperties: false
        voice_call:
          type: object
          description: |
            One "Call on WhatsApp" button: the customer calls the business on
            WhatsApp. Needs WhatsApp calling turned on for the inbox.
          required:
            - text
          properties:
            text:
              type: string
              maxLength: 20
              example: Call support
            ttl_minutes:
              type: integer
              minimum: 1
              maximum: 43200
              description: >-
                Minutes the button stays active. Meta's default is 7 days
                (10080).
              example: 1440
          additionalProperties: false
        footer:
          type: string
          maxLength: 60
          description: Goes out with reply or link buttons only.
          example: WiseApp Clinic
      additionalProperties: false
    interactive_payload:
      type: object
      description: >
        Sends a WhatsApp interactive message. Three providers support it:


        **WhatsApp Cloud** — `button`, `list`, `cta_url`, `location_request`,

        `carousel` and `pix`. It is a session message, so it only goes out while

        the 24-hour customer service window is open; outside the window the

        message is marked as failed, like free text.


        **WAHA** — `button` (reply buttons), `cta` (url / call / copy buttons),

        `list`, `carousel`, `pix`, `order` (Review and Pay), `poll`, `location`,

        `event` and `button_reply`. There is no 24-hour window, but the WAHA
        server

        (Super Admin → WhatsApp servers → *Interactive messages*, or the

        `WAHA_INTERACTIVE_MESSAGES=true` env var) and the account feature

        `waha_interactive_messages` must be on. Direct chats only: in groups the

        message fails with `interactive_group_unsupported` (WAHA answers 422 to

        buttons there). `carousel`, `pix`,

        `order` and `event` need the GOWS engine.


        **UazAPI** — `button` (reply buttons), `cta` (url / call / copy
        buttons),

        `list`, `poll`, `carousel`, `pix` (Pix button), `payment_request`

        ("Review and pay" with Pix, boleto, link and a document), `event` and

        `location_request`. There is no 24-hour window; the UazAPI server

        (Super Admin → WhatsApp servers → *Interactive messages*, or the

        `UAZAPI_INTERACTIVE_MESSAGES=true` env var) and the account feature

        `uazapi_interactive_messages` must be on. UazAPI accepts group JIDs

        (`@g.us`) on every one of these endpoints, so group conversations are

        allowed; whether WhatsApp renders each type in groups is not guaranteed.

        The status of a sent `payment_request` is updated with

        `POST .../messages/{message_id}/payment_status`.


        | UazAPI type | Endpoint | `content` | Header | Footer |

        |---|---|---|---|---|

        | button | /send/menu (button) | text, required | `media` (image, video,
        document) | yes |

        | cta | /send/menu (button) | text, required | `media` | yes |

        | list | /send/menu (list) | text, required | — | yes |

        | poll | /send/menu (poll) | question, required | — | — |

        | carousel | /send/carousel | text, optional | — (cards carry media) | —
        |

        | pix | /send/pix-button | not sent | — | — |

        | payment_request | /send/request-payment | text, optional | `header` =
        title, `media` = attached document | yes |

        | event | /send/event | event name, required | — | — |

        | location_request | /send/location-button | text, required | — | — |


        The message `content` is the main text: the body (max 1024 characters,

        4096 for lists), the poll question, the location title, the event name
        or

        the selected button text. It is optional only for WAHA `pix` (not sent)
        and

        `order` (sent as the buyer note), and for UazAPI `pix` (not sent),

        `payment_request` and `carousel`. The header, footer, button titles,
        link

        and list rows accept the same `{{variables}}` as the body, for example

        `{{contact.first_name}}`. Media goes by public URL (the provider
        downloads

        it), not as attachments. When `type` is omitted it is inferred from the

        first key found: `link` → cta_url, `actions` → cta, `list`, `cards` →

        carousel, `pix`, `order`, `payment` → payment_request, `poll`,
        `location`,

        `event`, `button_reply`, otherwise button.
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - button
            - list
            - cta_url
            - location_request
            - carousel
            - pix
            - cta
            - order
            - poll
            - location
            - event
            - button_reply
            - payment_request
          example: button
        header:
          type: string
          maxLength: 60
          description: >-
            Text header for button, list and cta_url (WAHA also cta; list title
            on WAHA). UazAPI menus have no text header; on UazAPI
            `payment_request` it is the title of the payment flow.
          example: Turno de {{contact.first_name}}
        media:
          type: object
          description: >-
            Media header for button and cta_url (WAHA and UazAPI button and
            cta). Replaces the text header. On UazAPI `payment_request` it is
            the attached document (boleto or invoice PDF, `type: document`).
          required:
            - url
          properties:
            type:
              type: string
              enum:
                - image
                - video
                - document
              default: image
            url:
              type: string
              format: uri
              description: Public URL, Meta downloads it.
              example: https://example.com/promo.jpg
            filename:
              type: string
              description: Document name shown to the customer.
        footer:
          type: string
          maxLength: 60
          description: >-
            For button, list and cta_url (WAHA also cta; UazAPI button, cta,
            list and payment_request).
          example: Clínica WiseApp
        buttons:
          type: array
          description: >
            type button. Reply buttons: each one is its title, or `{ id, title
            }` to give it an id of its own.

            Titles (and ids) must be unique; a button without `id` uses its
            title as the reply id.

            The id comes back in `content_attributes.interactive_reply.id` when
            the contact taps the button.
          minItems: 1
          maxItems: 3
          items:
            $ref: '#/components/schemas/interactive_reply_button'
          example:
            - id: confirm
              title: Confirmar
            - Reprogramar
        actions:
          type: array
          description: >
            WAHA and UazAPI type cta. 1 to 5 call-to-action buttons; they cannot
            be mixed with

            reply buttons. `url` opens the link, `call` opens the dialer with

            `phone_number`, `copy` copies `copy_code`.
          minItems: 1
          maxItems: 5
          items:
            $ref: '#/components/schemas/interactive_action'
          example:
            - type: url
              text: Ver pedido
              url: https://example.com/orders/12345
            - type: call
              text: Llamar
              phone_number: '+595981123456'
            - type: copy
              text: Copiar cupón
              copy_code: MEGA10
        link:
          type: object
          description: type cta_url. One button that opens the URL.
          required:
            - text
            - url
          properties:
            text:
              type: string
              maxLength: 20
              example: Ver pedido
            url:
              type: string
              format: uri
              example: https://example.com/orders/12345
        list:
          type: object
          description: >-
            type list. Up to 10 sections and 10 rows in total. A section without
            title takes the button label.
          required:
            - button
            - sections
          properties:
            button:
              type: string
              maxLength: 20
              description: Label of the button that opens the list.
              example: Ver horarios
            sections:
              type: array
              maxItems: 10
              items:
                type: object
                required:
                  - rows
                properties:
                  title:
                    type: string
                    maxLength: 24
                    example: Mañana
                  rows:
                    type: array
                    items:
                      type: object
                      required:
                        - title
                      properties:
                        id:
                          type: string
                          maxLength: 200
                          description: Defaults to the title.
                        title:
                          type: string
                          maxLength: 24
                          example: 32400
                        description:
                          type: string
                          maxLength: 72
                          example: Dra. Gómez
        cards:
          type: array
          description: >
            type carousel. WhatsApp Cloud: 2 to 10 cards; every card needs an
            image

            or video and the same buttons shape (one link, or the same number of

            reply titles). WAHA: at least one card, each with an image
            (required),

            optional header and footer, and its own reply titles, link or

            `actions`. UazAPI: 1 to 10 cards; each needs `body` (or `header`,
            sent as

            its first line) and 1 to 3 buttons mixing reply titles, `actions`
            and

            `link`; the media (image, video or document) is optional. The
            carousel

            has no top-level header or footer.
          minItems: 1
          maxItems: 10
          items:
            type: object
            properties:
              media:
                type: object
                description: Required on WhatsApp Cloud and WAHA, optional on UazAPI.
                required:
                  - url
                properties:
                  type:
                    type: string
                    enum:
                      - image
                      - video
                      - document
                    default: image
                    description: document is UazAPI only.
                  url:
                    type: string
                    format: uri
                    example: https://example.com/product-1.jpg
              header:
                type: string
                description: WAHA; UazAPI sends it as the first line of the card text.
                example: Echeveria
              body:
                type: string
                maxLength: 160
                example: Echeveria azul
              footer:
                type: string
                description: WAHA only.
                example: Envío gratis
              actions:
                type: array
                description: WAHA and UazAPI. Call-to-action buttons of the card.
                maxItems: 5
                items:
                  $ref: '#/components/schemas/interactive_action'
              buttons:
                type: array
                description: Reply buttons of the card, each its title or `{ id, title }`.
                items:
                  $ref: '#/components/schemas/interactive_reply_button'
                example:
                  - Comprar
                  - Más info
              link:
                type: object
                properties:
                  text:
                    type: string
                    maxLength: 20
                  url:
                    type: string
                    format: uri
        pix:
          type: object
          description: >
            type pix. Brazilian Pix payment. WhatsApp Cloud sends Meta's

            order_details message with a pix_dynamic_code: `code` ("copia e
            cola"

            from the business' bank or PSP) and `amount` are required, and
            WhatsApp

            shows the amount and a button to copy the code. WAHA and UazAPI send
            only

            `merchant_name`, `key` and `key_type`; the buyer types the amount on

            WhatsApp's payment screen (UazAPI shows "Pix" when `merchant_name`
            is

            missing, and sends no text with the button). WiseApp does not
            generate codes

            nor confirm payments.
          required:
            - key
            - key_type
          properties:
            code:
              type: string
              description: WhatsApp Cloud only.
              example: 00020101021226700014br.gov.bcb.pix2548pix.example.com
            merchant_name:
              type: string
              example: Loja WiseApp
            key:
              type: string
              example: '39580525000189'
            key_type:
              type: string
              enum:
                - CPF
                - CNPJ
                - EMAIL
                - PHONE
                - EVP
            amount:
              type: number
              description: Total in BRL. WhatsApp Cloud only.
              example: 150.5
            reference_id:
              type: string
              description: Unique order reference. Defaults to the message id.
        order:
          type: object
          description: >
            WAHA type order. Order summary with a Review and Pay button. Amounts
            are

            in currency units (`50.0`), WiseApp converts them to cents.
            `content` is

            sent as the buyer note.
          required:
            - items
          properties:
            items:
              type: array
              minItems: 1
              items:
                type: object
                required:
                  - name
                  - amount
                properties:
                  name:
                    type: string
                    example: Plan mensual
                  amount:
                    type: number
                    description: Unit price.
                    example: 50
                  quantity:
                    type: integer
                    minimum: 1
                    default: 1
                    example: 2
            currency:
              type: string
              default: BRL
            discount:
              type: number
              example: 10
            total:
              type: number
              description: Defaults to the items minus the discount.
            payment_type:
              type: string
              default: pix_static_code
            pix:
              type: object
              description: Pix key that receives the payment.
              properties:
                merchant_name:
                  type: string
                  example: Loja WiseApp
                key:
                  type: string
                  example: '39580525000189'
                key_type:
                  type: string
                  enum:
                    - CPF
                    - CNPJ
                    - EMAIL
                    - PHONE
                    - EVP
            instructions:
              type: string
              description: Payment instructions.
              example: Pagá dentro de las 24 horas
            reference_id:
              type: string
              description: Defaults to the message id.
        payment:
          type: object
          description: >
            UazAPI type payment_request. WhatsApp's native "Review and pay"
            request.

            `content` is the text, `header` the title, `footer` the footer and

            `media` (document) the attached boleto or invoice. `amount` is in
            BRL

            (`199.9`), not cents. Needs `amount` (or `order_message_id`) and

            `pix.key`; `boleto_code` and `payment_link` add those methods.
          properties:
            amount:
              type: number
              example: 199.9
            item_name:
              type: string
              example: Assinatura Plano Ouro
            invoice_number:
              type: string
              example: PED-123
            pix:
              type: object
              required:
                - key
              properties:
                merchant_name:
                  type: string
                  example: Loja WiseApp
                key:
                  type: string
                  example: 123e4567-e89b-12d3-a456-426614174000
                key_type:
                  type: string
                  enum:
                    - CPF
                    - CNPJ
                    - EMAIL
                    - PHONE
                    - EVP
                  default: EVP
            boleto_code:
              type: string
              description: Boleto digitable line; enables the boleto method.
              example: 34191.79001 01043.510047 91020.150008 5 91070026000
            payment_link:
              type: string
              format: uri
              description: External checkout URL. UazAPI only accepts approved domains.
            order_message_id:
              type: string
              description: >-
                WhatsApp id of an order the same customer sent; items and total
                come from it and `amount` is not needed.
        poll:
          type: object
          description: WAHA and UazAPI type poll. `content` is the question (max 255).
          required:
            - options
          properties:
            options:
              type: array
              minItems: 2
              maxItems: 12
              items:
                type: string
                maxLength: 100
              example:
                - Mañana
                - Tarde
                - Noche
            multiple_answers:
              type: boolean
              default: false
            selectable_count:
              type: integer
              minimum: 0
              description: >-
                UazAPI only. How many options can be chosen; overrides
                `multiple_answers` (which means all of them).
        location:
          type: object
          description: WAHA type location. Sends a pin; `content` is the place title.
          required:
            - latitude
            - longitude
          properties:
            latitude:
              type: number
              example: -25.2637
            longitude:
              type: number
              example: -57.5759
        event:
          type: object
          description: WAHA and UazAPI type event. `content` is the event name.
          required:
            - start_time
          properties:
            start_time:
              type: string
              description: ISO 8601 time or unix seconds.
              example: '2026-11-20T19:00:00-03:00'
            end_time:
              type: string
              description: ISO 8601 time or unix seconds.
            location:
              description: >-
                Place name. UazAPI also takes an object with `name`, `address`,
                `latitude` and `longitude`.
              example: Av. Mariscal López 1234
            description:
              type: string
              example: Presentamos la nueva colección.
            extra_guests_allowed:
              type: boolean
              default: false
            join_link:
              type: string
              format: uri
              description: >-
                UazAPI only. HTTPS link to join; required when `schedule_call`
                is true.
            schedule_call:
              type: boolean
              description: UazAPI only. The event is a scheduled call.
            has_reminder:
              type: boolean
              description: UazAPI only.
            reminder_offset_sec:
              type: integer
              minimum: 0
              description: UazAPI only. Reminder this many seconds before the start.
        button_reply:
          type: object
          description: >
            WAHA type button_reply. Answers a buttons message as if the button
            had

            been tapped; `content` is the selected button text. The target is

            `reply_to` or, when omitted, the message given in

            `content_attributes.in_reply_to`. Some WAHA engines answer 501 (not

            implemented) and the message is marked as failed.
          properties:
            id:
              type: string
              description: Selected button id. Defaults to the text.
              example: confirm
            reply_to:
              type: string
              description: WAHA id of the buttons message.
              example: false_595981123456@c.us_AAAAAAAAAAAAAAAAAAAA
      additionalProperties: false
    social_comment:
      type: object
      description: >
        The Facebook or Instagram post comment a message holds, in
        `content_attributes.social_comment`. Comment messages are

        incoming messages with `additional_attributes.social_comment: true`,
        stored in the commenter's conversation next to

        their direct messages; the message `source_id` is the comment id and
        `content` its text.
      properties:
        platform:
          type: string
          enum:
            - facebook
            - instagram
          example: instagram
        comment_id:
          type: string
          description: Meta id of the comment.
          example: '17890455324018273'
        parent_id:
          type:
            - string
            - 'null'
          description: >-
            Id of the comment it answers, when it is a reply to another comment.
            Inboxes that keep `comments_top_level_only` on only store top-level
            comments.
          example: null
        post_id:
          type:
            - string
            - 'null'
          description: Meta id of the post, reel or ad the comment was left on.
          example: '18034571230097521'
        media_product_type:
          type:
            - string
            - 'null'
          description: Instagram media type, such as `FEED`, `REELS` or `AD`.
          example: FEED
        permalink:
          type:
            - string
            - 'null'
          description: Public link to the post.
          example: https://www.instagram.com/p/C9xYz12AbCd/
        caption:
          type:
            - string
            - 'null'
          description: Text of the post.
          example: New collection out now
        thumbnail_url:
          type:
            - string
            - 'null'
          description: >-
            Picture of the post, copied to the installation storage so it keeps
            working after Meta's link expires.
        ad_id:
          type:
            - string
            - 'null'
          description: Id of the ad, when the comment was left on an ad.
        ad_title:
          type:
            - string
            - 'null'
        from_username:
          type:
            - string
            - 'null'
          description: Username of the commenter (Instagram).
          example: maria.store
        hidden:
          type: boolean
          description: The comment is hidden from the public on Meta.
          example: false
        deleted:
          type: boolean
          description: >-
            The comment was deleted on Meta. A deleted comment takes no further
            actions.
          example: false
        private_reply_sent_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the private reply was sent. Meta allows only one per comment.
          example: null
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
    interactive_reply_button:
      description: >-
        A reply button, given as its title or as `{ id, title }`. Without `id`
        the title is also the reply id.
      oneOf:
        - type: string
          maxLength: 20
          description: Button title, also used as the reply id.
        - type: object
          required:
            - title
          properties:
            id:
              type: string
              maxLength: 256
              description: >-
                Id that comes back in `content_attributes.interactive_reply.id`
                when the contact taps the button.
              example: confirm
            title:
              type: string
              maxLength: 20
              example: Confirmar
    interactive_action:
      type: object
      description: WAHA call-to-action button.
      required:
        - type
        - text
      properties:
        type:
          type: string
          enum:
            - url
            - call
            - copy
        text:
          type: string
          maxLength: 20
          example: Ver pedido
        url:
          type: string
          format: uri
          description: type url.
          example: https://example.com/orders/12345
        phone_number:
          type: string
          description: type call.
          example: '+595981123456'
        copy_code:
          type: string
          description: type copy.
          example: MEGA10
      additionalProperties: false
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.
    agentBotApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token do bot de agente, fornecido pelo administrador. Acessa apenas um
        subconjunto limitado de endpoints.

````

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