Requer token de instância. Templates criados ficam com status PENDING até aprovação da Meta (geralmente algumas horas).
ID do WhatsApp Business Account.
Nome do template (snake_case, sem espaços).
Código do idioma. Ex: pt_BR, en_US.
MARKETING, UTILITY ou AUTHENTICATION.
Array de componentes do template.
Exemplos
UTILITY com texto
MARKETING com botões
AUTHENTICATION (OTP)
{
"name": "order_confirmation",
"language": "pt_BR",
"category": "UTILITY",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Pedido Confirmado ✅"
},
{
"type": "BODY",
"text": "Olá {{1}}, seu pedido *#{{2}}* foi confirmado e será entregue em {{3}} dias úteis."
},
{
"type": "FOOTER",
"text": "Obrigado pela compra!"
}
]
}
{
"name": "promo_summer",
"language": "pt_BR",
"category": "MARKETING",
"components": [
{
"type": "HEADER",
"format": "IMAGE",
"example": {
"header_handle": ["https://example.com/promo.jpg"]
}
},
{
"type": "BODY",
"text": "Aproveite {{1}}% de desconto! Válido até {{2}}.",
"example": {
"body_text": [["50", "31/12/2026"]]
}
},
{
"type": "BUTTONS",
"buttons": [
{ "type": "URL", "text": "Comprar agora", "url": "https://loja.com/promo" },
{ "type": "QUICK_REPLY", "text": "Não tenho interesse" }
]
}
]
}
{
"name": "verify_code",
"language": "pt_BR",
"category": "AUTHENTICATION",
"components": [
{
"type": "BODY",
"add_security_recommendation": true
},
{
"type": "BUTTONS",
"buttons": [
{ "type": "OTP", "otp_type": "COPY_CODE", "text": "Copiar código" }
]
}
]
}
Resposta
{
"id": "1234567890",
"status": "PENDING",
"category": "UTILITY"
}