Visão geral da API
API oficial do WhatsApp Business (Meta) — envie mensagens, gerencie templates aprovados e receba webhooks assinados. Base URL api.wablastmessage.com.
Resposta rápida
A API do WaBlast é a API oficial do WhatsApp Business (Meta) para enviar mensagens, gerenciar templates aprovados e receber webhooks assinados. Base URL https://api.wablastmessage.com. Autenticação via Bearer token (wak_…), 19 endpoints REST, suporte a texto, mídia, templates e webhooks com assinatura HMAC.
Exemplo rápido
curl -X POST https://api.wablastmessage.com/v1/messages \
-H "Authorization: Bearer wak_sua_chave" \
-H "Content-Type: application/json" \
-d '{"to":"+5511999990000","type":"text","text":{"body":"Olá!"}}'import fetch from 'node-fetch';
const res = await fetch('https://api.wablastmessage.com/v1/messages', {
method: 'POST',
headers: {
'Authorization': 'Bearer wak_sua_chave',
'Content-Type': 'application/json',
},
body: JSON.stringify({ to: '+5511999990000', type: 'text', text: { body: 'Olá!' } }),
});
console.log(res.status);import requests
res = requests.post(
'https://api.wablastmessage.com/v1/messages',
headers={'Authorization': 'Bearer wak_sua_chave'},
json={'to': '+5511999990000', 'type': 'text', 'text': {'body': 'Olá!'}},
)
print(res.status_code)<?php
$ch = curl_init('https://api.wablastmessage.com/v1/messages');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer wak_sua_chave',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'to' => '+5511999990000',
'type' => 'text',
'text' => ['body' => 'Olá!'],
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE);