> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kernelmedia.tv/llms.txt
> Use this file to discover all available pages before exploring further.

# Radarr & Sonarr

> Defaults for watchlist requests sent to Radarr and Sonarr

<sup>New in 0.9.0</sup> When someone adds a title that isn't in your library to their [watchlist](https://docs.kernelmedia.tv/api-reference/watchlist-and-search.md), Kernel can request it from Radarr (movies) or Sonarr (shows). These endpoints set the quality profile and root folder those requests use. All of them need an [admin token](https://docs.kernelmedia.tv/api-reference/admin/overview.md#authentication).

## Options

`GET /api/admin/arr/{app}/options`, where `app` is `radarr` or `sonarr`

Lists what you can pick as defaults. Returns `409` if that app isn't configured.

```json theme={null}
{
  "qualityProfiles": [{"id": 4, "name": "HD-1080p"}],
  "rootFolders": ["/movies"]
}
```

## Request defaults

`GET /api/admin/arr/request-defaults` returns the current defaults; `PUT` sets them.

```bash theme={null}
curl -X PUT http://<server>:9014/api/admin/arr/request-defaults \
  -H "Authorization: Bearer <admin-jwt>" \
  -H "Content-Type: application/json" \
  -d '{"radarrQualityProfileId": 4, "radarrRootFolder": "/movies", "sonarrQualityProfileId": 6, "sonarrRootFolder": "/tv"}'
```

## Webhooks

Point Radarr's and Sonarr's webhook connections at `POST /webhook/radarr` and `POST /webhook/sonarr`. On a **Download** event Kernel adds the new file to your library right away; on a delete event it removes the item. Upgrades, where the old file is deleted and a better one imported, keep the item.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.