Enigma Developers
API ReferenceMessages

Send a reply-buttons message

POST
/v1/messages/buttons

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.

Authorization

headerAuthorizationBearer <token>

Your organization API key: Authorization: Bearer org_…

Request Body

application/json
  1. body
channelId*ChannelId

Your channel's ID: copy it from the channel's card on the dashboard's Channels page.

to*PhoneNumber

Recipient's number in international format, digits only, no +.

interactive*

Response Body

Sent, or success: false for a non-WhatsApp channel.

application/json
  1. response
success*boolean
messageId?string

The 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"}