I recently installed a webhook plugin from a guy name Valentin. Search the plugins library. It has many triggers for numerous events.
General developer forum
Receiving Webhook Notifications In moodle
This discussion has been locked so you can no longer reply to it.