Alert webhooks

Changed

A webhook sends one JSON request to a link you paste, each time an alert fires. It is optional, one address per alert. Open the alert and tick Webhook under Notifications.

The request is not waited on by the on-screen notice or the email. It times out after 5 seconds and is not retried. A status from 200 to 299 counts as delivered. After three failures in a row that webhook turns off, the link stays, and the notice and the email keep working.

From a connected AI#

A connected AI uses the same address rules and the same delivery rules. create_alert and update_alert set the link. Leaving the webhook fields out of an edit keeps the saved link. get_alert_webhook reads whether a security key exists and, for one alert, the failure count and whether delivery is on. It does not return the key, and there is no list of past posts. rotate_alert_webhook_key creates or replaces the key and shows it once. Setting the link again does not turn a webhook back on. Turn back on still has to succeed in the alert dialog.