Generic webhook alerts (e.g. for Discord)

Related: Add ntfy.sh and shoutrrr Alert services

It think it would be nice if we could allow users to

  1. Specify the webhook url;
  2. Specify request headers, if any;
  3. A request body template, e.g.,

JSON:

{"text": "${message:json}", "something": "else"}

XML:

<alert>${message:xml}</alert>

application/x-www-form-urlencoded:

text=${message:url}&something=else

Plaintext:

${message}

where ${message} is the alert message placeholder and :format escapes the message based on format.

1 Like