API ReferenceMessages
Send a reply-buttons message
POST
Sends a WhatsApp interactive message with one to three reply buttons. When the
contact taps one, it arrives on the inbound_message webhook.
Returns success: false if the channel is not a WhatsApp channel.
Requires scope message:send.
header
AuthorizationBearer <token>Your organization API key: Authorization: Bearer org_…
application/json- body
channelId*ChannelIdYour channel's ID: copy it from the channel's card on the dashboard's Channels page.
to*PhoneNumberRecipient's number in international format, digits only, no +.
interactive*Sent, or success: false for a non-WhatsApp channel.
application/json- response
success*booleanmessageId?stringThe WhatsApp message ID
curl -X POST 'https://api.enigma-ai.com/v1/messages/buttons' \ -H 'Content-Type: application/json' \ -d '{ "channelId": "3f6c1a2e-8b4d-4c7a-9e21-5d0b7f3a6c19", "to": "249912345678", "interactive": { "body": { "text": "Was your issue resolved?" }, "buttons": [ { "id": "resolved_yes", "title": "Yes" }, { "id": "resolved_no", "title": "No" } ] }}'{ "success": true, "messageId": "string"}