Skip to main content
POST
/
send-button-actions
curl --request POST \
  --url https://zapi.hubmessage.io/channels/{channel_id}/token/{channel_token}/send-button-actions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "5511999999999",
  "message": "Olá! Como podemos ajudar?",
  "title": "Hub Message",
  "footer": "Escolha uma opção",
  "buttonActions": [
    {
      "id": "1",
      "type": "CALL",
      "phone": "5511999999999",
      "label": "Fale conosco"
    },
    {
      "id": "2",
      "type": "URL",
      "url": "https://www.hubmessage.io",
      "label": "Visite nosso site"
    }
  ]
}
'
{
  "zaapId": "3999984263738042930CD6ECDE9VDWSA",
  "messageId": "D241XXXX732339502B68",
  "id": "D241XXXX732339502B68"
}

Overview

Method for sending messages with action buttons. There are three button types:
  • CALL — Button to call a phone number
  • URL — Button to open a link
  • REPLY — Quick reply button
Do not combine all three button types in the same message. Send CALL + URL buttons together, and REPLY buttons separately. Combining all of them causes errors on WhatsApp Web.
For copy-code buttons, use the URL format: https://www.whatsapp.com/otp/code/?otp_type=COPY_CODE&code=YOUR_CODE
The response structure is identical to Z-API. Your existing code that processes these returns will continue working without changes.

Authorizations

Authorization
string
header
required

Secret Key gerada no painel de Segurança do Hub Message

Body

application/json
phone
string
required

Telefone do destinatário (DDI + DDD + número)

Example:

"5511999999999"

message
string
required

Texto da mensagem

buttonActions
object[]
required

Lista de botões de ação

title
string

Título da mensagem

Rodapé da mensagem

delayMessage
integer

Delay em segundos antes do envio (1-15)

Required range: 1 <= x <= 15

Response

Mensagem enviada com sucesso

zaapId
string

Identificador interno

messageId
string

ID da mensagem no WhatsApp

id
string

Mesmo valor do messageId (compatibilidade)