Skip to main content
POST
/
api
/
v2
/
message
Mensaje interactivo (CTA)
curl --request POST \
  --url https://whatsapp.heybot.cloud/api/v2/message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": 123,
  "type": "<string>",
  "interactive": {
    "type": "<string>",
    "body": {
      "text": "<string>"
    },
    "action": {
      "name": "<string>",
      "parameters": {
        "display_text": "<string>",
        "url": "<string>"
      }
    },
    "footer": {
      "text": "<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.

Mensajes con botón con URL de llamada a la acción interactivo Con estos mensajes de botón URL de llamada a la acción, puedes asignar cualquier URL a un botón, de modo que no tengas que incluir toda la URL en el cuerpo del mensaje.
to
integer
default:5219876543210
required
Número de WhatsApp del destinatario en formato internacional, sin símbolos ni espacios.
type
string
required
Tipo de mensaje a enviar. Para este endpoint debe ser interactive.
interactive
object
required
The interactive message payload configuration.
type
string
default:"interactive"
required
The overall type of message being sent.

Ejemplo

{
  "to": 5219876543210,
  "type": "text",
  "text": {
    "body": "¡Hola mundo!"
  }
}