POST
/
api
/
sendButtons
Enviar botões (mensagem interativa) (Send buttons (interactive message))
curl --request POST \
  --url https://api.wappfy.com.br/api/sendButtons \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "chatId": "11111111111@c.us",
  "header": "How are you?",
  "headerImage": {
    "mimetype": "image/jpeg",
    "filename": "filename.jpg",
    "url": "https://github.com/devlikeapro/waha/raw/core/examples/waha.jpg"
  },
  "body": "Tell us how are you please 🙏",
  "footer": "If you have any questions, please send it in the chat",
  "buttons": [
    {
      "type": "reply",
      "text": "I am good!"
    },
    {
      "type": "call",
      "text": "Call us",
      "phoneNumber": "+1234567890"
    },
    {
      "type": "copy",
      "text": "Copy code",
      "copyCode": "4321"
    },
    {
      "type": "url",
      "text": "How did you do that?",
      "url": "https://waha.devlike.pro"
    }
  ],
  "session": "session"
}'

Authorizations

apikey
string
header
required

Apikey

Body

application/json
chatId
string
required
Example:

"11111111111@c.us"

header
string
required
Example:

"How are you?"

body
string
required
Example:

"Tell us how are you please 🙏"

Example:

"If you have any questions, please send it in the chat"

buttons
object[]
required
Example:
[
{ "type": "reply", "text": "I am good!" },
{
"type": "call",
"text": "Call us",
"phoneNumber": "+1234567890"
},
{
"type": "copy",
"text": "Copy code",
"copyCode": "4321"
},
{
"type": "url",
"text": "How did you do that?",
"url": "https://waha.devlike.pro"
}
]
session
string
required

O nome da sessão (instanceName)

Example:

"session"

headerImage
object