header.parameters
: Contém a imagem a ser enviadabody.parameters
: Parâmetros de texto para o corpo da mensagemAuthorization: Bearer ********************
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "5511999999999",
"type": "template",
"template": {
"name": "imagem_promocional",
"language": {
"code": "pt_BR"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "image",
"image": {
"link": "https://exemplo.com/imagem.jpg"
}
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "50%"
},
{
"type": "text",
"text": "15/04/2025"
}
]
}
]
}
}
curl --location --request POST 'https://waba.optjuntos.com.br/api/v1/messages' \
--header 'Content-Type: application/json' \
--data-raw '{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "5511999999999",
"type": "template",
"template": {
"name": "imagem_promocional",
"language": {
"code": "pt_BR"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "image",
"image": {
"link": "https://exemplo.com/imagem.jpg"
}
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "50%"
},
{
"type": "text",
"text": "15/04/2025"
}
]
}
]
}
}'
{
"messaging_product": "string",
"contacts": [
{
"input": "string",
"wa_id": "string"
}
],
"messages": [
{
"id": "string"
}
]
}