Add a webhook
add_webhookUse this when the user wants FlareWarden to send alert events to their own HTTPS endpoint (a generic, signed JSON webhook), or to connect Slack, Discord, Google Chat or Microsoft Teams. Each event FlareWarden then sends there carries the monitor's name and URL and what happened, such as an incident's times and error message or a certificate's dates. For an endpoint: creates the webhook and returns a one-time link where the user sees its signing secret (the secret never appears in the chat). For a chat destination: returns the page where the user pastes the channel's webhook URL, which works as a password and is never a tool argument. Owners and admins only. Not for the user's own alert emails: use update_my_notifications. The webhook format, events and signature are documented at https://flarewarden.com/docs/alerts/webhooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | For destination custom: the HTTPS endpoint. Never a Slack, Discord, Google Chat or Microsoft Teams URL. | |
| name | No | A name for the webhook, as the Webhooks page lists it. | |
| sites | No | Limit the webhook to these sites, each by id, name or part of its URL. Leave out for every site. | |
| events | No | For destination custom, required: the events to send, at least one, such as incident.started and incident.recovered (the Webhooks page asks for them too). | |
| destination | No | custom (default): the user's own HTTPS endpoint. slack, discord, googlechat or teams (Microsoft Teams): returns the page to connect that channel. | |
| idempotency_key | No | Optional. Send the same key again after a lost reply and the change is not made twice. |