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

Required Body Parameters

body
object
required
Your message’s body. Maximum of 1024 characters.
action
object
required
Inside action, you must nest:
  1. a button field with your button’s content, maximum of 20 characters.
  2. at least one section object (maximum of 10) with a maximum of 24 characters for the title for section.
  3. Inside section, you must add at least one rows object. Maximum of 24 characters for the title for a row and maximum of 72 characters for the description for a row.

Optional Attributes

header
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.
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": "list",
    "header": {
        "type": "text",
        "text": "Book a Service"
    },
    "body": {
        "text": "Choose a service or support option:"
    },
    "footer": {
        "text": "Your Service Center"
    },
    "action": {
        "button": "See Options",
        "sections": [
        {
            "title": "Services",
            "rows": [
            {
                "id": "serv_1",
                "title": "Cleaning",
                "description": "Full home cleaning"
            },
            {
                "id": "serv_2",
                "title": "Plumbing",
                "description": "Fix water leakage"
            }
            ]
        },
        {
            "title": "Support",
            "rows": [
            {
                "id": "sup_1",
                "title": "Technical Support",
                "description": "For devices"
            },
            {
                "id": "sup_2",
                "title": "Account Support",
                "description": "For account issues"
            }
            ]
        }
        ]
    }
    }
}