Install jq:
yay -S jq
Take a look at the script and :
Run a command and send its content :
my_command 2>&1 | ./webhook.sh