Skip to main content
POST
/
api
/
send
/
buttons
/
reply
Reply to a button message
curl --request POST \
  --url https://{host}/api/send/buttons/reply \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "chatId": "5511999999999@c.us",
  "replyTo": null,
  "selectedDisplayText": "<string>",
  "selectedButtonID": "<string>",
  "session": "my-session"
}'
{
  "success": true,
  "messageId": "3EB0XXXXXX"
}

Description

This endpoint allows you to send a simulated response to messages that contain interactive buttons. Useful for automations that need to interact with buttons sent by other contacts or systems.

Body

{
  "sessionId": "my-session",
  "jid": "5511999999999@s.whatsapp.net",
  "selectedButtonID": "3EB0XXXXXX",
  "selectedDisplayText": "Hello, how are you?",
  "replyTo": "value"
}

Body Parameters

PropertyTypeRequiredDescription
sessionIdstring✅ YesAuthenticated session ID that will send the response
jidstring✅ YesRecipient identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us for groups
selectedButtonIDstring✅ YesSelected button ID (rowId of the chosen option)
selectedDisplayTextstring✅ YesDisplay text of the selected button
replyTostring✅ YesMessage ID with buttons that you are replying to
{
  "success": true,
  "messageId": "3EB0XXXXXX"
}

Status Codes

  • 200 - Response sent successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized session
  • 404 - Session not found

Usage Example

curl -X POST https://api.wappfy.com.br/api/send/buttons/reply \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "my-session",
    "jid": "5511999999999@s.whatsapp.net",
    "selectedButtonID": "plan_pro",
    "selectedDisplayText": "Plano Pro",
    "replyTo": "3EB0XXXXXX"
  }'

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Body

application/json
chatId
string
required
Example:

"5511999999999@c.us"

selectedDisplayText
string
required
selectedButtonID
string
required
session
string
required

Session name (instanceName)

Example:

"my-session"

replyTo
string

Message ID you want to reply to

Example:

null

I