Create a remote download task.
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Body Params application/json
URI of the destination folder.
URI of the source torrent file. If this field is empty, src
is required.
List of URL to be download. Can be HTTP or magnet link, depending on the configured downloader. If this field is empty, src_file
is required.
ID of preferred node to process
{
"src_file": "cloudreve://my/big-buck-bunny_202112_archive.torrent",
"dst": "cloudreve://my",
"preferred_node_id": "m9uO"
}
Request samples
curl --location --request POST '/workflow/download' \
--header 'Content-Type: application/json' \
--data-raw '{
"src_file": "cloudreve://my/big-buck-bunny_202112_archive.torrent",
"dst": "cloudreve://my",
"preferred_node_id": "m9uO"
}'
Responses
application/json Response code.
0
- Success.
Human readable error message (if any).
{
"code": 0,
"data": [
{
"created_at": "2025-05-20T13:27:36.003255+08:00",
"updated_at": "2025-05-20T13:27:36.003255+08:00",
"id": "agr0hj",
"status": "queued",
"type": "remote_download",
"summary": {
"props": {
"download": null,
"dst": "cloudreve://my",
"failed": 0,
"src": "",
"src_str": "https://github.com/cloudreve/Cloudreve/releases/download/4.0.0-beta.11/cloudreve_4.0.0-beta.11_darwin_amd64.tar.gz"
}
}
}
],
"msg": ""
}
Modified at 2025-05-20 06:26:01