Send List Message
curl --request POST \
--url https://api.example.com/api/v1/messages/send/interactive/list \
--header 'Content-Type: application/json' \
--data '
{
"body": "Pick a campaign template",
"button_text": "Open options",
"phone_number": "6281234567890",
"sections": [
{
"rows": [
{
"description": "Short promo blast",
"id": "promo_flash",
"title": "Flash Sale"
},
{
"description": "New product announcement",
"id": "promo_launch",
"title": "Launch Update"
}
],
"title": "Templates"
}
],
"whatsapp_account_id": "c053d8ef-6c19-4ecb-9cc5-a4a64be79d92"
}
'import requests
url = "https://api.example.com/api/v1/messages/send/interactive/list"
payload = {
"body": "Pick a campaign template",
"button_text": "Open options",
"phone_number": "6281234567890",
"sections": [
{
"rows": [
{
"description": "Short promo blast",
"id": "promo_flash",
"title": "Flash Sale"
},
{
"description": "New product announcement",
"id": "promo_launch",
"title": "Launch Update"
}
],
"title": "Templates"
}
],
"whatsapp_account_id": "c053d8ef-6c19-4ecb-9cc5-a4a64be79d92"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('Pick a campaign template'),
button_text: 'Open options',
phone_number: '6281234567890',
sections: [
{
rows: [
{description: 'Short promo blast', id: 'promo_flash', title: 'Flash Sale'},
{
description: 'New product announcement',
id: 'promo_launch',
title: 'Launch Update'
}
],
title: 'Templates'
}
],
whatsapp_account_id: 'c053d8ef-6c19-4ecb-9cc5-a4a64be79d92'
})
};
fetch('https://api.example.com/api/v1/messages/send/interactive/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"run_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}interactive
Send List Message
Send an interactive list message.
POST
/
api
/
v1
/
messages
/
send
/
interactive
/
list
Send List Message
curl --request POST \
--url https://api.example.com/api/v1/messages/send/interactive/list \
--header 'Content-Type: application/json' \
--data '
{
"body": "Pick a campaign template",
"button_text": "Open options",
"phone_number": "6281234567890",
"sections": [
{
"rows": [
{
"description": "Short promo blast",
"id": "promo_flash",
"title": "Flash Sale"
},
{
"description": "New product announcement",
"id": "promo_launch",
"title": "Launch Update"
}
],
"title": "Templates"
}
],
"whatsapp_account_id": "c053d8ef-6c19-4ecb-9cc5-a4a64be79d92"
}
'import requests
url = "https://api.example.com/api/v1/messages/send/interactive/list"
payload = {
"body": "Pick a campaign template",
"button_text": "Open options",
"phone_number": "6281234567890",
"sections": [
{
"rows": [
{
"description": "Short promo blast",
"id": "promo_flash",
"title": "Flash Sale"
},
{
"description": "New product announcement",
"id": "promo_launch",
"title": "Launch Update"
}
],
"title": "Templates"
}
],
"whatsapp_account_id": "c053d8ef-6c19-4ecb-9cc5-a4a64be79d92"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('Pick a campaign template'),
button_text: 'Open options',
phone_number: '6281234567890',
sections: [
{
rows: [
{description: 'Short promo blast', id: 'promo_flash', title: 'Flash Sale'},
{
description: 'New product announcement',
id: 'promo_launch',
title: 'Launch Update'
}
],
title: 'Templates'
}
],
whatsapp_account_id: 'c053d8ef-6c19-4ecb-9cc5-a4a64be79d92'
})
};
fetch('https://api.example.com/api/v1/messages/send/interactive/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"run_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Body
application/json
Request to send a list message.
Recipient phone number.
Required string length:
5 - 50Primary list message body.
Required string length:
1 - 1024Call-to-action label that opens the list.
Required string length:
1 - 30One or more sections containing selectable rows.
Required array length:
1 - 10 elementsShow child attributes
Show child attributes
Optional footer text shown under the list body.
Maximum string length:
60