Skip to main content
POST
https://api.telepie.com/v1/
/
whatsapp
Reply Button With Text Header
curl --request POST \
  --url https://api.telepie.com/v1/whatsapp \
  --header 'apikey: <api-key>'
To send a reply button message, you must assemble an interactive object of type button with the following components

Request Body Parameters

body
object
required
Your message’s body. Maximum of 1024 characters.
action
object
required
You must add at least one button, and include type, title, and id for your buttons.You cannot add more than 3 buttons. Maximun of 20 characters for title.

Optional Attributes

headerr
object
If you decide to include it, you must set the header’s type to text and add a text field with the desired content. Maximum of 60 characters.For button interactive messages, you can use the following header types: text, video, image, or document.
Maximum of 60 characters.
curl -P - /v1/whatsapp\
-H 'apikey':'string'
-H "Content-Type: application/json" \
-d '{
    "recipient_type": "individual",
    "from": "+91XXXXXXXXXX",
    "to": "+91XXXXXXXXXX",
    "type": "interactive",
        "interactive": {
        "type": "button",
        "header": {
            "type": "text",
            "text": "your-header-content"
        },
        "body": {
            "text": "How would you rate your experience?"
        },
        "action": {
            "buttons": [
                {
                    "type": "reply",
                    "reply": {
                        "id": "rate_good",
                        "title": "Good"
                    }
                },
                {
                    "type": "reply",
                    "reply": {
                        "id": "rate_avg",
                        "title": "Average"
                    }
                },
                {
                    "type": "reply",
                    "reply": {
                        "id": "rate_bad",
                        "title": "Bad"
                    }
                }
            ]
       }
    }
}