cURL
curl --request POST \ --url http://localhost:3000/api/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "instance_id": "<string>", "url": "<string>", "name": "<string>" } '
Registre uma URL para receber eventos do WhatsApp
{ "id": "wh_...", "instance_id": "inst_...", "url": "https://meuapp.com/webhook", "name": "Produção", "active": true, "created_at": "2026-01-01T00:00:00Z" }