curl --request POST \
--url https://{server-url}/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>"
}
]
}
]
}
}'
Send a template message with the Official WhatsApp API
curl --request POST \
--url https://{server-url}/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>"
}
]
}
]
}
}'
Your authorization key header
ID of the instance to connect