Skip to main content
POST
https://api.telepie.com/v1/
/
whatsapp
Reply Button Without 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

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",
        "body": {
        "text": "How would you rate your experience?"
        },
        "action": {
        "buttons": [
            {
            "type": "reply",
            "reply": {
                "id": "unique-postback-id",
                "title": "First Button’s Title"
            }
            },
            {
            "type": "reply",
            "reply": {
                "id": "unique-postback-id",
                "title": "Second Button’s Title"
            }
            }
        ]
        }
    }
}