Send message with Buttons

The method is designed to send a message with buttons to a private or group chat

Peculiarities when working with buttons:

  • the button name can have no more than 25 characters;

  • there can be no more than 3 buttons of this type;

  • the button can be pressed only 1 time.

  • for current nuances of button display, see the article Current status of Buttons on WhatsApp

You can send a message with the button to either private chat or group chat. The buttons, e.g. YES / NO, can be selected by the user and used as a response to the sent message.

Types of buttons

There are four types of buttons on WhatsApp:

  • Simple text button (Quick-reply)

  • List of options

  • Link Button

  • OTP Button (Copy Button)

  • Call Button

Endpoint for sending messages with different buttons

Sending requires a request to be made to:

POST https://gate.whapi.cloud/messages/interactive


Message with auto-reply buttons

Example of a message with quick reply buttons.

When the recipient clicks on a button, it automatically sends a reply to your message containing the buttonโ€™s text. If you've set up a webhook for the channel, you'll receive a callback with both the button ID and the text.

Note that the callback may be slightly different if the customer clicked the button in Web WhatsApp:

Example of a message with callback buttons and a link to a third-party site

Unfortunately, WhatsApp does not track the event of clicking these buttons. Therefore, it is not possible to get a webhook for pressing these buttons.


Message with copy button (OTP code)

Example of a message with a button to copy hidden text

You can pass any text to the snippet that will be copied after the button is clicked.

Unfortunately, WhatsApp does not track the event of clicking these buttons. Therefore, it is not possible to get a webhook for pressing these buttons.


Message with list of options

Example of a message with a button with a list of options
The list of options will expand if the user clicks on it.

When the recipient clicks on a button, it automatically sends a reply to your message containing the buttonโ€™s text. If you've set up a webhook for the channel, you'll receive a callback with both the button ID and the text.


Send buttons with images

When using this endpoint, you can also send images containing interactive action buttons. The labels on these buttons, such as โ€œYESโ€ or โ€œNO,โ€ are selected by the user and serve as direct responses to the message transmitted using the buttons.

Sending requires a request to be made to:

POST https://gate.whapi.cloud/messages/interactive

The image can be transferred either via a direct link, Base64, or Media ID.

Send a message with buttons and an image to WhatsApp
Send a message with buttons and an image

Send Buttons with Video

This method allows you to send videos with action buttons. You can place up to three buttons with different content in a message, and whatever the user selects will be used as a response to the message sent along with the buttons.

Sending requires a request to be made to:

POST https://gate.whapi.cloud/messages/interactive

The video can be transferred either via a direct link, Base64, or Media ID.

Send a message with buttons and video

WhatsApp Carousel Messages

A carousel in WhatsApp is an interactive message format. It allows sending up to 10 cards in a single message โ€” each containing an image or video, text, and interactive buttons. Using action buttons, you can redirect to links, make calls, and also provide standard responses.

Displaying the carousel in Web WhatsApp

This format is ideal for showcasing products, services, or catalogs, enabling recipients to swipe through multiple cards within one message. It provides a clear and engaging way to organize and present visual content or offer users interactive choices.

Displaying the carousel in the WhatsApp app on phone

This endpoint is responsible for sending messages with carousel:

POST https://gate.whapi.cloud/messages/carousel

Example of request payload:


We continue to explore WhatsApp's capabilities and add to our methods for automation. In the upcoming updates we will have the ability to send messages with picture/media and buttons.

If you have any questions, our team is always available to help you.

Last updated

Was this helpful?