Note: A list message can contain up to 10 sections and customers can select one option from the list.
curl --location 'https://rest.qikberry.ai/v1/whatsapp/messages' \
--header 'x-phone-number: <WA_ID>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"to": "<USER_PHONE_NUMBER>",
"type": "interactive",
"interactive": {
"type": "list",
"header": {
"type": "text",
"text": "Choose Messaging Option"
},
"body": {
"text": "Which messaging option do you prefer?"
},
"footer": {
"text": "Qikberry technologies and private limited"
},
"action": {
"button": "Messaging option Options",
"sections": [
{
"title": "Turn your business conversation into CRM",
"rows": [
{
"id": "sms",
"title": "SMS",
"description": "15 paisa/sms"
},
{
"id": "Whatsapp",
"title": "Whatsapp",
"description": "3000 per annum"
}
]
},
{
"title": "Scheduling time",
"rows": [
{
"id": "morning",
"title": "Morning",
"description": "9 am-12 pm "
},
{
"id": "afternoon",
"title": "Afternoon",
"description": "12 pm–6pm"
},
]
}
]
}
}
}'{
"message": "1 numbers accepted",
"data": [
{
"messageId": "<MESSAGE_ID>",
"mobile": "<USER_PHONE_NUMBER>"
}
]
}