curl --request POST \
--url https://api.zapkey.io/message/sendTemplate/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "<string>",
"templateMessage": {
"name": "<string>",
"language": "pt_BR",
"components": [
{
"type": "header",
"sub_type": "quick_reply",
"index": "<string>",
"parameters": [
{
"type": "payload",
"text": "<string>"
}
]
}
]
}
}
'This response has no body data.Send a template message with the Official WhatsApp API
curl --request POST \
--url https://api.zapkey.io/message/sendTemplate/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "<string>",
"templateMessage": {
"name": "<string>",
"language": "pt_BR",
"components": [
{
"type": "header",
"sub_type": "quick_reply",
"index": "<string>",
"parameters": [
{
"type": "payload",
"text": "<string>"
}
]
}
]
}
}
'This response has no body data.Your authorization key header
ID of the instance to connect
Message receiver number with country code
Show child attributes
Template name
Template language
"pt_BR"
Template components
Show child attributes
header, body, button quick_reply, url, copy_code, catalog Button index from 0-9