+
+
+Webhook triggering is only supported for **Sonarr** and **Radarr**. Set the Malware Blocker
+**Trigger Mode** to **Webhook** or **Schedule + Webhook** for incoming webhooks to be acted on.
+
+
+
+
+
+
+When an "On Grab" webhook arrives, Cleanuparr runs a targeted Malware Blocker scan of just that one
+download (identified by its torrent hash from the webhook), rather than iterating the whole queue. The
+scan runs immediately and is retried a couple of times shortly after, because a torrent often has no
+file metadata yet at grab time.
+
+
+Because the grabbed torrent may not have downloaded its file list yet, the very first scan can find
+nothing to act on. Keeping the schedule enabled (**Schedule + Webhook**) ensures these are still caught
+by the regular run.
+
+
+
+
+
+
+Each Sonarr/Radarr instance has its own webhook URL. Open the instance under its connection page
+(**Sonarr** / **Radarr** settings) and use the **Webhook URL** button on the instance to reveal and copy
+it. The URL has the form:
+
+```
+http://:11011/api/webhooks/malware-blocker/?apikey=
+```
+
+It already contains your account API key, so it authenticates automatically.
+
+
+The URL embeds your API key — treat it as a secret.
+
+
+
+
+
+
+1. In Sonarr/Radarr, go to **Settings → Connect → + → Webhook**.
+2. Enable the **On Grab** notification trigger.
+3. Set **URL** to the webhook URL copied from Cleanuparr and **Method** to `POST`.
+4. Click **Test** — Cleanuparr acknowledges the test without running a scan — then **Save**.
+
+From now on, every grab is scanned by the Malware Blocker as soon as it reaches the download client.
+
+
+
+
+
+