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

# Resolve a recipient and send an outbound message

> Resolves or creates the contact and contact-inbox, reuses or creates a
conversation, and queues one outgoing message through the selected inbox.
A `202` response confirms local acceptance; provider delivery remains
asynchronous and follows the normal message status/webhook lifecycle.

Interactive lists and reply buttons (Cloud API, WAHA, UazAPI): give each row
or button an `id`. When the contact picks one, the incoming message (in the
`message_created` webhook and in the messages API) carries
`content_attributes.interactive_reply` with `type`, `id` and `title`, so the
choice is told apart by that `id`. A row or button sent without `id` comes
back with its title as `id`.

Facebook and Instagram comments: `message.type: comment_reply` with
`message.comment_reply.comment_id` answers a comment of the inbox, publicly
below it or (`visibility: private`) with the private reply. It takes no
`recipient`, and the response reports the comment's contact and
conversation with `created: false`.




## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/outbound_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}/outbound_messages:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
      - name: Idempotency-Key
        in: header
        required: false
        description: >-
          Optional key for safe retries. When omitted, every request is
          processed as a new logical send.
        example: outbound-message
        schema:
          type: string
          maxLength: 255
    post:
      tags:
        - Outbound Messages
      summary: Resolve a recipient and send an outbound message
      description: >
        Resolves or creates the contact and contact-inbox, reuses or creates a

        conversation, and queues one outgoing message through the selected
        inbox.

        A `202` response confirms local acceptance; provider delivery remains

        asynchronous and follows the normal message status/webhook lifecycle.


        Interactive lists and reply buttons (Cloud API, WAHA, UazAPI): give each
        row

        or button an `id`. When the contact picks one, the incoming message (in
        the

        `message_created` webhook and in the messages API) carries

        `content_attributes.interactive_reply` with `type`, `id` and `title`, so
        the

        choice is told apart by that `id`. A row or button sent without `id`
        comes

        back with its title as `id`.


        Facebook and Instagram comments: `message.type: comment_reply` with

        `message.comment_reply.comment_id` answers a comment of the inbox,
        publicly

        below it or (`visibility: private`) with the private reply. It takes no

        `recipient`, and the response reports the comment's contact and

        conversation with `created: false`.
      operationId: create-outbound-message
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/outbound_message_create_payload'
            examples:
              comment_public_reply:
                summary: Public reply to a Facebook or Instagram comment
                value:
                  inbox_id: 7
                  message:
                    type: comment_reply
                    content: Thanks for your comment! We just sent you the details.
                    comment_reply:
                      comment_id: '17890455324018273'
              comment_private_reply:
                summary: Private reply to a Facebook or Instagram comment
                description: >-
                  Meta allows one private reply per comment, within 7 days of
                  it.
                value:
                  inbox_id: 7
                  message:
                    type: comment_reply
                    content: >-
                      Hi! The price is $49 and we ship tomorrow. Do you want to
                      order?
                    comment_reply:
                      comment_id: '17890455324018273'
                      visibility: private
              text:
                summary: Text message
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                    name: Juan
                  message:
                    type: text
                    content: Hola Juan, este es un mensaje de prueba.
              whatsapp_direct_send:
                summary: WhatsApp Direct Send (utility, no template)
                description: >
                  Needs a WhatsApp Cloud inbox with Direct Send turned on.
                  Utility content only.

                  Meta drops the message if it isn't delivered within 12 hours.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: direct_send
                    content: Hola Juan, tu cita es mañana a las 10:00.
                    direct_send:
                      ttl_seconds: 43200
                      template_name: appointment_reminder
                      buttons:
                        - Confirmar
                        - Reprogramar
                      footer: Clínica WiseApp
              whatsapp_direct_send_media:
                summary: WhatsApp Direct Send with image header and link button
                description: The image goes by public URL; Meta downloads it.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: direct_send
                    content: Tu pedido
                    direct_send:
                      media:
                        type: image
                        url: https://example.com/orders/12345/package.jpg
                      link:
                        text: Seguir envío
                        url: https://example.com/orders/12345
              whatsapp_direct_send_authentication:
                summary: WhatsApp Direct Send authentication code
                description: >-
                  Plain text only. Meta has to open authentication messages to
                  the WABA.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: direct_send
                    content: Tu código de verificación es 482913. No lo compartas.
                    direct_send:
                      category: authentication
                      ttl_seconds: 300
              whatsapp_interactive:
                summary: WhatsApp interactive list (inside the 24-hour window)
                description: >-
                  WhatsApp Cloud inboxes only. Fails like free text when the
                  customer service window is closed.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    content: Hola {{contact.first_name}}, elegí un horario.
                    interactive:
                      type: list
                      header: Turnos disponibles
                      footer: Clínica WiseApp
                      list:
                        button: Ver horarios
                        sections:
                          - title: Mañana
                            rows:
                              - id: slot_0900
                                title: '09:00'
                                description: Dra. Gómez
                              - id: slot_1030
                                title: '10:30'
              whatsapp_interactive_buttons:
                summary: >-
                  WhatsApp interactive buttons with image header (inside the
                  24-hour window)
                description: >-
                  WhatsApp Cloud inboxes only. Media goes by public URL. Each
                  button may carry its own id.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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:
                        - id: confirm_appointment
                          title: Confirmar
                        - id: reschedule_appointment
                          title: Reprogramar
              whatsapp_carousel:
                summary: WhatsApp media carousel (inside the 24-hour window)
                description: >-
                  WhatsApp Cloud inboxes only. 2 to 10 cards with the same
                  buttons shape.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    content: Mirá nuestras novedades de la semana.
                    interactive:
                      type: carousel
                      cards:
                        - media:
                            type: image
                            url: https://example.com/product-1.jpg
                          body: Echeveria azul
                          link:
                            text: Comprar
                            url: https://example.com/p/1
                        - media:
                            type: image
                            url: https://example.com/product-2.jpg
                          body: Haworthia cebra
                          link:
                            text: Comprar
                            url: https://example.com/p/2
              whatsapp_pix:
                summary: WhatsApp Pix payment (inside the 24-hour window)
                description: >-
                  WhatsApp Cloud inboxes only. The dynamic Pix code comes from
                  your bank or PSP.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+5511999990000'
                  message:
                    type: interactive
                    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
              waha_interactive_reply_buttons:
                summary: WAHA reply buttons with image header
                description: >-
                  WAHA inboxes with interactive messages on. Up to 3 reply
                  buttons.
                value:
                  inbox_id: 4
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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:
                        - id: confirm_appointment
                          title: 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:
                  inbox_id: 4
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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
                  (without header the list button is the title).
                value:
                  inbox_id: 4
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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:
                  inbox_id: 4
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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:
                  inbox_id: 4
                  recipient:
                    phone_number: '+5511999990000'
                  message:
                    type: interactive
                    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:
                  inbox_id: 4
                  recipient:
                    phone_number: '+5511999990000'
                  message:
                    type: interactive
                    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:
                  inbox_id: 4
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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:
                  inbox_id: 4
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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:
                  inbox_id: 4
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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:
                  inbox_id: 4
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: interactive
                    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). No 24-hour
                  window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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:
                        - id: confirm_appointment
                          title: 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. No
                  24-hour window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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. No
                  24-hour window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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. No 24-hour window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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. No 24-hour window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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. No 24-hour
                  window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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. No 24-hour
                  window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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". No 24-hour window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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. No 24-hour window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    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. No 24-hour window.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    phone_number: '{{uazapiRecipientPhone}}'
                    name: Ana
                  message:
                    type: interactive
                    content: Para continuar, tocá el botón y compartí tu ubicación.
                    interactive:
                      type: location_request
              uazapi_interactive_group_poll:
                summary: UazAPI poll to a WhatsApp group
                description: >-
                  UazAPI only. The group goes by its JID in recipient.source_id;
                  votes arrive as replies from each participant.
                value:
                  inbox_id: '{{uazapiInboxId}}'
                  recipient:
                    source_id: '{{uazapiGroupJid}}'
                    name: Equipo de ventas
                  message:
                    type: interactive
                    content: ¿Qué día hacemos la reunión del equipo?
                    interactive:
                      type: poll
                      poll:
                        options:
                          - Lunes
                          - Miércoles
                          - Viernes
                        multiple_answers: true
              multimedia:
                summary: Multimedia using an Active Storage signed blob ID
                description: >-
                  Set outboundMediaSignedBlobId after uploading the file to
                  Active Storage.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: media
                    content: Te envío el comprobante.
                    attachments:
                      - '{{outboundMediaSignedBlobId}}'
              whatsapp_template_image:
                summary: WhatsApp template with an image header
                description: >-
                  Based on the approved `imagen2` template in inbox 6. Replace
                  outboundTemplateMediaUrl with a public HTTPS image URL.
                value:
                  inbox_id: 6
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: template
                    template:
                      name: imagen2
                      language: en
                      category: MARKETING
                      parameters:
                        header:
                          media_url: '{{outboundTemplateMediaUrl}}'
                          media_type: image
                        body:
                          '1': Nestor
              whatsapp_template_url_button:
                summary: WhatsApp template with a dynamic URL button
                description: >-
                  Based on the approved `testboton` template in inbox 6. Only
                  the dynamic URL button needs a parameter; its phone button is
                  fixed in the approved template.
                value:
                  inbox_id: 6
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: template
                    template:
                      name: testboton
                      language: en_US
                      category: UTILITY
                      parameters:
                        body:
                          '1': John
                          '2': Jan 1, 2024
                          '3': 1800-555-1234
                        buttons:
                          - type: url
                            parameter: orders/985
              whatsapp_template_quick_reply_buttons:
                summary: WhatsApp template with quick-reply buttons
                description: >-
                  Based on the approved `testdobleboton` template in inbox 6.
                  Its Yes/No quick replies are static, so the request sends only
                  the eight body variables.
                value:
                  inbox_id: 6
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: template
                    template:
                      name: testdobleboton
                      language: en_US
                      category: UTILITY
                      parameters:
                        body:
                          '1': John
                          '2': CS Mutual
                          '3': suspicious
                          '4': CS Mutual debit
                          '5': '1234'
                          '6': Jan 1, 2024
                          '7': Jasper's Market
                          '8': $12.34
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/outbound_message_create_payload'
            examples:
              file_upload:
                summary: Multimedia uploading a file
                description: >-
                  Select the local file in the `message[attachments][]` field
                  before sending the request.
                value:
                  inbox_id: 3
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: media
                    content: Te envío el comprobante.
                    attachments:
                      - select-file
              whatsapp_template_media_upload:
                summary: WhatsApp template uploading its header media
                description: >-
                  Based on the approved `imagen2` template in inbox 6. Select
                  the image in
                  `message[template][parameters][header][media_file]`; the API
                  creates the provider-accessible media URL.
                value:
                  inbox_id: 6
                  recipient:
                    phone_number: '+595985523065'
                  message:
                    type: template
                    template:
                      name: imagen2
                      language: en
                      category: MARKETING
                      parameters:
                        header:
                          media_file: select-file
                        body:
                          '1': Nestor
      responses:
        '202':
          description: Message accepted and queued.
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - idempotent_replay
                  - contact
                  - contact_inbox
                  - conversation
                  - message
                properties:
                  status:
                    type: string
                    enum:
                      - queued
                  idempotent_replay:
                    type: boolean
                  contact:
                    $ref: '#/components/schemas/outbound_message_resource_result'
                  contact_inbox:
                    $ref: '#/components/schemas/outbound_message_resource_result'
                  conversation:
                    allOf:
                      - $ref: '#/components/schemas/outbound_message_resource_result'
                      - type: object
                        properties:
                          display_id:
                            type: integer
                          status:
                            type: string
                  message:
                    type: object
                    required:
                      - id
                      - status
                      - content_type
                      - created_at
                    properties:
                      id:
                        type: integer
                      status:
                        type: string
                      content:
                        type: string
                        nullable: true
                      content_type:
                        type: string
                      created_at:
                        type: string
                        format: date-time
              example:
                status: queued
                idempotent_replay: false
                contact:
                  id: 42
                  created: false
                contact_inbox:
                  id: 91
                  created: true
                conversation:
                  id: 120
                  display_id: 85
                  created: true
                  status: open
                message:
                  id: 500
                  status: sent
                  content: Tu pedido está listo
                  content_type: text
                  created_at: '2026-07-29T18:00:00Z'
        '401':
          description: Invalid token or unauthorized access.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Unauthorized
        '403':
          description: API access is disabled for the account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Forbidden
        '409':
          description: >
            `idempotency_conflict`: the Idempotency-Key was already used with a
            different payload.

            `request_in_progress`: a comment reply with this key is still being
            processed or did not finish; it is

            never sent twice.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Conflict
        '422':
          description: >
            Invalid recipient, message, attachment, template, or channel
            addressing. `code` tells why. For

            `comment_reply`: `comment_reply_not_enabled` (the account feature
            `social_comments` is off),

            `recipient_not_allowed`, `content_required`,
            `attachments_not_allowed`,

            `invalid_comment_reply`, `comment_not_found` (no comment of the
            inbox has that id), `comment_deleted`,

            `private_reply_already_sent`, `private_reply_expired` or
            `meta_error` (Meta refused it; `error` carries its message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
        - agentBotApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    outbound_message_create_payload:
      type: object
      required:
        - inbox_id
        - message
      properties:
        inbox_id:
          type: integer
          description: Inbox that will dispatch the message.
          example: 12
        recipient:
          type: object
          description: >-
            Exactly one recipient identity must be provided, except for
            `comment_reply`, which takes none. Name is optional metadata and is
            never used for lookup.
          properties:
            name:
              type: string
              example: Juan Pérez
            phone_number:
              type: string
              description: E.164 phone number for phone-addressed channels.
              example: '+595981123456'
            email:
              type: string
              format: email
              example: juan@example.com
            contact_id:
              type: integer
              description: Existing contact ID from this account.
              example: 42
            source_id:
              type: string
              description: Provider recipient identifier for the selected inbox.
              example: '17841400000000000'
          oneOf:
            - required:
                - phone_number
            - required:
                - email
            - required:
                - contact_id
            - required:
                - source_id
        message:
          type: object
          required:
            - type
          properties:
            type:
              type: string
              enum:
                - text
                - media
                - template
                - direct_send
                - interactive
                - comment_reply
              example: text
            content:
              type: string
              description: >-
                Required for text, direct_send, comment_reply and interactive
                (except WAHA pix and order, and UazAPI pix, payment_request and
                carousel); optional caption for media or explicit display
                content for templates. When omitted for a template, the synced
                approved template BODY is rendered and stored.
              example: Tu pedido está listo
            subject:
              type: string
              description: Subject used when a new email conversation is created.
              example: Actualización de tu pedido
            content_attributes:
              type: object
              additionalProperties: true
            attachments:
              type: array
              maxItems: 1
              description: >-
                One multipart file or Active Storage signed blob ID for a media
                message.
              items:
                oneOf:
                  - type: string
                    description: Active Storage signed blob ID.
                  - type: string
                    format: binary
            template:
              type: object
              description: WhatsApp or Twilio WhatsApp template payload.
              required:
                - name
                - language
              properties:
                name:
                  type: string
                  example: order_ready
                language:
                  type: string
                  example: es
                category:
                  type: string
                  example: UTILITY
                namespace:
                  type: string
                parameters:
                  type: object
                  additionalProperties: true
                  properties:
                    header:
                      type: object
                      additionalProperties: true
                      properties:
                        media_url:
                          type: string
                          description: >-
                            Public HTTP(S) URL for an image, video, or document
                            template header.
                        media_type:
                          type: string
                          enum:
                            - image
                            - video
                            - document
                        media_name:
                          type: string
                          description: Optional filename for document headers.
                        media_file:
                          description: >-
                            Multipart file or Active Storage signed blob ID. The
                            API uploads it and supplies header.media_url
                            internally.
                          oneOf:
                            - type: string
                              description: Active Storage signed blob ID.
                            - type: string
                              format: binary
                    body:
                      type: object
                      additionalProperties: true
                    buttons:
                      type: array
                      items:
                        type: object
                        additionalProperties: true
                  example:
                    body:
                      '1': Juan
                      '2': '985'
            direct_send:
              $ref: '#/components/schemas/direct_send_payload'
            interactive:
              $ref: '#/components/schemas/interactive_payload'
            comment_reply:
              type: object
              description: >
                For `comment_reply`: answers a Facebook or Instagram post
                comment the inbox received. The comment picks the

                conversation, so the request takes no `recipient`; replies are
                text only. A public reply is published below

                the comment in the background (Meta's refusal turns the message
                `failed`). A private reply is the one direct

                message Meta allows per comment, within 7 days of it, and is
                sent before the response.
              required:
                - comment_id
              properties:
                comment_id:
                  type: string
                  description: >-
                    Meta id of the comment, the `source_id` of its message
                    (`content_attributes.social_comment.comment_id`).
                  example: '17890455324018273'
                visibility:
                  type: string
                  enum:
                    - public
                    - private
                  default: public
    outbound_message_resource_result:
      type: object
      required:
        - id
        - created
      properties:
        id:
          type: integer
        created:
          type: boolean
    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
    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.