Referência da API
Enviar template oficial
Contrato completo para templates do WhatsApp Cloud.
POST
/api/v1/messages/templateEnvia um template previamente aprovado pela Meta por um canal WhatsApp Cloud.
Autorização
bearerAuth AuthorizationBearer <token>
API key criada em Configurações → Chaves de API. Formato: vsk_live_…
In: header
Parâmetros de cabeçalho
Idempotency-Key?string
Chave única por operação. Reutilize-a com o mesmo payload em retries.
Tamanho
8 <= length <= 128Corpo da requisição
application/json
Definições TypeScript
Use o tipo request body no TypeScript.
Corpo da resposta
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/messages/template" \ -H "Content-Type: application/json" \ -d '{ "to": "+5511999999999", "channelCode": "whatsapp-oficial", "template": { "name": "confirmacao_pedido", "language": "pt_BR" }, "bodyVariables": [ "Maria", "#1234" ] }'{ "messageId": "string", "providerMessageId": "string", "conversationId": "string", "outreachId": "string", "firingChannelId": "string", "templateName": "string", "language": "string", "status": "sent", "createdAt": "2019-08-24T14:15:22Z", "idempotencyReplayed": true, "apiKeyId": "string"}