{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "method": "getTorrentsUrl",
    "group": "Torrents",
    "summary": "Get a torrent's download link",
    "description": "The URL embeds the calling user's authkey and torrent_pass, so it is credentialed\nand should be treated as a secret.",
    "deprecated": false,
    "params": {
        "type": "object",
        "properties": {
            "key": {
                "description": "API key",
                "type": "string"
            },
            "TorrentID": {
                "type": "string"
            }
        },
        "required": [
            "key",
            "TorrentID"
        ],
        "x-order": [
            "key",
            "TorrentID"
        ]
    },
    "result": {
        "type": "string"
    },
    "errors": [
        {
            "code": -32001,
            "message": "Invalid API Key"
        },
        {
            "code": -32002,
            "message": "Call Limit Exceeded"
        },
        {
            "code": -32003,
            "message": "User Account Disabled"
        },
        {
            "code": -32004,
            "message": "IP address needs authorization - please check your notices on BTN"
        },
        {
            "code": -32004,
            "message": "Unauthorized IP address"
        },
        {
            "code": 0,
            "message": "ERROR 400"
        }
    ],
    "examples": [],
    "$defs": {}
}
