Skip to main content
POST
Reply to action button

Concept

This endpoint allows you to reply to an action button, simulating a user click on one of the options previously sent via send-button-actions.
Only buttons of type REPLY can be answered. Other button types do not support replies via API.
The button must have been previously sent and the button ID must be obtained via the message received webhook.

Example on WhatsApp


Attributes

string
required
Your instance ID. Available in the Z-API panel under Instances.
string
required
Your Z-API instance token.

Required

string
required
Phone number (or group ID) in the format COUNTRY CODE + AREA CODE + NUMBER. Example: 551199999999
string
required
ID of the REPLY-type button. This ID is obtained via the message received webhook.
string
required
ID of the message that contains the previously sent buttons.

Request Body

Response

200

string
Message ID in Z-API
string
Message ID in WhatsApp
string
Added for Zapier compatibility, it has the same value as messageId

405

Make sure you are using the correct HTTP method (POST).

415

Make sure to include the Content-Type: application/json header.