1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-16 16:04:08 +01:00
3 Webhook
fhscholl edited this page 2017-11-01 12:16:51 -04:00

If you're looking to notify a web service to indicate when Radarr has done things, you can find more details here:

Overview

Radarr can notify a web service using POST or PUT when new episodes are imported, renamed, or grabbed.

Parameters are passed to the web service as a JSON body.

Representative payloads for each event type are below. There is also a JSON schema available.

Example Payload

On Grab
{
    "eventType": "Grab",
    "movie": {
        "id": 2,
        "title": "Finding Nemo",
        "releaseDate": "2003-08-28"
    },
    "remoteMovie": {
        "tmdbId": 12,
        "imdbId": "tt0266543",
        "title": "Finding Nemo",
        "year": 2003
    },
    "release": {
        "quality": "DVD",
        "qualityVersion": 1,
        "releaseGroup": "XME",
        "releaseTitle": "Finding.Nemo.2003.iNTERNAL.DVDRip.x264-XME",
        "indexer": "NZBgeek",
        "size": 2172672000
    }
}
On Download/On Upgrade
{
    "eventType": "Download",
    "movie": {
        "id": 2,
        "title": "Finding Nemo",
        "releaseDate": "2003-08-28"
    },
    "remoteMovie": {
        "tmdbId": 12,
        "imdbId": "tt0266543",
        "title": "Finding Nemo",
        "year": 2003
    },
    "movieFile": {
        "id": 2,
        "relativePath": "Finding Nemo (2003) DVD.mkv",
        "path": "Z:\\Finding.Nemo.2003.iNTERNAL.DVDRip.x264-REGRET\\regret-nemo.mkv",
        "quality": "DVD",
        "qualityVersion": 1,
        "releaseGroup": "REGRET"
    },
    "isUpgrade": false
}
On Rename
{
    "eventType": "Rename",
    "movie": {
        "id": 2,
        "title": "Finding Nemo",
        "releaseDate": "2003-08-28"
    }
}
On Test
{
    "eventType": "Test",
    "movie": {
        "id": 1,
        "title": "Test Title",
        "releaseDate": "1970-01-01"
    },
    "remoteMovie": {
        "tmdbId": 1234,
        "imdbId": "5678",
        "title": "Test title",
        "year": 1970
    },
    "release": {
        "quality": "Test Quality",
        "qualityVersion": 1,
        "releaseGroup": "Test Group",
        "releaseTitle": "Test Title",
        "indexer": "Test Indexer",
        "size": 9999999
    }
}
Sample/Example Apps/Usage

TODO