curl --request POST \
--url https://api.zapkey.io/message/sendList/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "<string>",
"options": {
"delay": 123,
"presence": "composing"
},
"listMessage": {
"title": "<string>",
"description": "<string>",
"buttonText": "<string>",
"footerText": "<string>",
"sections": [
{
"title": "<string>",
"rows": [
{
"title": "<string>",
"description": "<string>",
"rowId": "<string>"
}
]
}
]
}
}
'{
"key": {
"remoteJid": "[email protected]",
"fromMe": true,
"id": "BAE5096096C5E261"
},
"message": {
"listMessage": {
"title": "List Title",
"description": "List description",
"buttonText": "Click Me",
"listType": "PRODUCT_LIST",
"sections": [
{
"title": "Section title",
"rows": [
{
"title": "Row 1",
"description": "Row 1 description",
"rowId": "1"
},
{
"title": "Row 2",
"description": "Row 2 description",
"rowId": "2"
}
]
},
{
"title": "Section 2",
"rows": [
{
"title": "Row 1",
"description": "Row 1 description",
"rowId": "1"
},
{
"title": "Row 2",
"description": "Row 2 description",
"rowId": "2"
}
]
}
],
"contextInfo": {}
}
},
"messageTimestamp": "1717782429",
"status": "PENDING"
}Send List
curl --request POST \
--url https://api.zapkey.io/message/sendList/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "<string>",
"options": {
"delay": 123,
"presence": "composing"
},
"listMessage": {
"title": "<string>",
"description": "<string>",
"buttonText": "<string>",
"footerText": "<string>",
"sections": [
{
"title": "<string>",
"rows": [
{
"title": "<string>",
"description": "<string>",
"rowId": "<string>"
}
]
}
]
}
}
'{
"key": {
"remoteJid": "[email protected]",
"fromMe": true,
"id": "BAE5096096C5E261"
},
"message": {
"listMessage": {
"title": "List Title",
"description": "List description",
"buttonText": "Click Me",
"listType": "PRODUCT_LIST",
"sections": [
{
"title": "Section title",
"rows": [
{
"title": "Row 1",
"description": "Row 1 description",
"rowId": "1"
},
{
"title": "Row 2",
"description": "Row 2 description",
"rowId": "2"
}
]
},
{
"title": "Section 2",
"rows": [
{
"title": "Row 1",
"description": "Row 1 description",
"rowId": "1"
},
{
"title": "Row 2",
"description": "Row 2 description",
"rowId": "2"
}
]
}
],
"contextInfo": {}
}
},
"messageTimestamp": "1717782429",
"status": "PENDING"
}Your authorization key header
ID of the instance to connect
Number to receive the message (with country code)
Show child attributes
List title
List description
Button text
Footer text
Created
The message content, which may include various types of messages like text, images, list, etc.
Show child attributes
Details of the list message.
Show child attributes
The title of the list message.
The description of the list message.
The text of the button in the list message.
The type of the list.
The sections in the list message.
Show child attributes
The title of the section.
Additional context information.
The timestamp of the message, represented as a string.
The status of the message, such as sent, received, or pending.