POST Configurar webhook
Defina a URL do seu sistema que receberá as mensagens recebidas pela instância.
curl -X POST https://localhost/api/v1/webhook \
-H "Authorization: Bearer SEU_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"webhook_url": "https://api.seusistema.com/webhooks/script"
}'
{
"success": true,
"message": "Webhook atualizado com sucesso.",
"data": {
"webhook_url": "https://api.seusistema.com/webhooks/script",
"event": "message.received"
}
}