WA Client
POST

Send Button

Send an interactive button message. Up to 3 buttons: quick reply, URL, or call. Requires the Interactive messages plan feature.

API endpoint
https://waclient.com/api/send
Quick reply buttons
curl -X POST \
  'https://waclient.com/api/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "20100981XXXX",
    "type": "button",
    "message": {
        "caption": "How can we help?",
        "footer": "Choose one",
        "templateButtons": [
            {
                "index": 1,
                "quickReplyButton": {
                    "display_text": "Support"
                }
            },
            {
                "index": 2,
                "quickReplyButton": {
                    "display_text": "Sales"
                }
            }
        ]
    },
    "instance_id": "META68B6ED90CXXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Response
{
    "status": "success",
    "message": "Success",
    "message_payload": {
        "messaging_product": "whatsapp",
        "messages": [
            {
                "id": "wamid.xxx",
                "message_status": "accepted"
            }
        ]
    }
}
URL + Call buttons with image
curl -X POST \
  'https://waclient.com/api/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "20100981XXXX",
    "type": "button",
    "message": {
        "caption": "Visit our store or call us",
        "footer": "Optional footer",
        "image": {
            "url": "https://example.com/banner.jpg"
        },
        "templateButtons": [
            {
                "index": 1,
                "urlButton": {
                    "display_text": "Visit",
                    "url": "https://example.com"
                }
            },
            {
                "index": 2,
                "callButton": {
                    "display_text": "Call",
                    "phone_number": "+20100981XXXX"
                }
            }
        ]
    },
    "instance_id": "META68B6ED90CXXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
ParameterDescription
numberRecipient phone number with country code
typeMust be button
messageJSON with caption, optional footer / image, and templateButtons
instance_idMeta Cloud instance ID
access_tokenYour access token
Only delivers if the customer messaged you within the last 24 hours. Outside that window, use Meta Templates.

Command Palette

Search documentation endpoints.

Esc