Skip to main content
When an end user taps a button in a WhatsApp message, the OneXtel platform posts a Button Click callback to your configured endpoint. Button clicks are inbound button interactions submitted under incoming message events, so the payload follows the same structure as Incoming Messages with a button object in place of the message content objects.
In the sample below, each field’s value shows that field’s JSON path rather than an example value. All leaf fields are typed as string.

Payload format

Field reference

string
Custom reference field 1, echoed back from the original send request. See custom reference passthrough.
string
Custom reference field 2, echoed back from the original send request.
string
Custom reference field 3, echoed back from the original send request.
string
Custom reference field 4, echoed back from the original send request.
string
Custom reference field 5, echoed back from the original send request.
array of object
Container array for the callback event.