Send buttons
send_buttonsSend WhatsApp messages with up to 10 tappable quick-reply or link buttons, letting recipients answer with a button ID or open an HTTPS link.
Instructions
Send a message with 1 to 10 tappable buttons. A quick reply (id) answers as a message.received of type button with button.id; a link (url, HTTPS) opens when tapped. WhatsApp disables a quick reply in the sender's own view of the message; recipients can tap it. The body is text, with an optional footer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient: a phone number in E.164 with + (`+584241112233`), `lid:<digits>`, the `@username` of a contact the account already chats with, a group id (`...@g.us`), or a channel id (`...@newsletter`) the account administers. | |
| text | Yes | The message body. | |
| footer | No | Small print under the buttons. | |
| buttons | Yes | 1 to 10 buttons: each one with an `id` (quick reply) or a `url` (link), not both. | |
| mentions | No | Contact ids to @mention (E.164 or `lid:<digits>`). | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| idempotencyKey | No | Optional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice. | |
| replyToMessageId | No | A wuapi message id in the same chat to quote (reply to). One exception, a private reply: a message someone else wrote in a group can be quoted in the direct chat with its author (`to` is that message's `from`). |