Skip to main content
POST
/
api
/
v2
/
message
Mensajes de botones de respuesta interactivos
curl --request POST \
  --url https://whatsapp.heybot.cloud/api/v2/message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "<string>",
  "type": "<string>",
  "interactive": {
    "type": "<string>",
    "header": {
      "type": "<string>",
      "text": "<string>",
      "[media_type]": {
        "id": "<string>",
        "link": "<string>"
      }
    },
    "body": {
      "text": "<string>"
    },
    "footer": {
      "text": "<string>"
    },
    "action": {
      "buttons": [
        {
          "type": "<string>",
          "reply": {
            "id": "<string>",
            "title": "<string>"
          }
        }
      ]
    }
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.heybot.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Los mensajes de botones de respuesta interactivos te permiten enviar hasta tres respuestas predefinidas que los usuarios deben seleccionar. Para responder un mensaje, los usuarios pueden seleccionar uno de los botones predefinidos, lo que activa un webhook de mensajes que describe su selección.
to
string
required
The recipient’s phone number or WhatsApp ID.
type
string
default:"interactive"
required
The overall type of message being sent.
interactive
object
required
The interactive message payload configuration.

Ejemplo

MESSAGE_HEADER Opcional
{
  "type": "image|document|video",
  "image": {
      "link": "https://www.luckyshrub.com/media/workshop-banner.png"
    }
}
{
  "type": "text",
  "text": "Workshop Details"
}

{
  "to": 5219876543210,
  "type": "interactive",
  "interactive": {
    "type": "button",
    "header": {<MESSAGE_HEADER>},
    "body": {
      "text": "<BODY_TEXT>"
    },
    "footer": {
      "text": "<FOOTER_TEXT>"
    },
    "action": {
      "buttons": [
        {
          "type": "reply",
          "reply": {
            "id": "<BUTTON_ID>",
            "title": "<BUTTON_LABEL_TEXT>"
          }
        }
        <!-- Additional buttons would go here (maximum 3) -->
      ]
    }
  }
}