Cloudreve API Docs
  1. Remote Download
Cloudreve API Docs
  • Site
    • Ping
      GET
    • Get CAPTCHA
      GET
    • Get site settings
      GET
  • Session
    • Token
      • Password sign-in
      • Finish sign-in with 2FA
      • Refresh Token
      • Sign out
    • OpenID
      • Prepare OpenID sign-in
      • Finish OpenID sign-in
      • Unlink OpenID
    • Passkey
      • Prepare Passkey sign-in
      • Finish Passkey sign-in
    • Prepare login
      GET
  • User
    • Passkey
      • Prepare passkey registration
      • Finish passkey registration
      • Delete passkey
    • Setting
      • List available storage policies
      • List available nodes
      • Get preferences
      • Prepare enabling 2FA
      • Update preference setting
      • Update profile pricture
    • Sign up
      POST
    • Send reset password email
      POST
    • Reset password via temp link
      PATCH
    • Get profile picture
      GET
    • Get user
      GET
    • List user's share links
      GET
    • Get storage capacity
      GET
    • Search user
      GET
    • List credit changes
      GET
    • List payments
      GET
  • Callback
    • Complete OneDrive upload
    • Complete COS upload
    • Complete S3 upload
    • Complete OBS upload
  • Workflow
    • Remote Download
      • Create remote download
        POST
      • Select files to download
        PATCH
      • Cancel task
        DELETE
    • List tasks
      GET
    • Get task progress
      GET
    • Create archive
      POST
    • Extract archive
      POST
    • Relocate storage policy
      POST
    • Import external files
      POST
  • File
    • Permission
      • Set permission
      • Delete permission setting
    • Upload
      • Create upload session
      • Upload file chunk
      • Delete upload session
    • Pin
      • Pin to sidebar
      • Delete a pin
    • Version
      • Set file version
      • Delete file version
    • Direct Link
      • Create direct links
      • Delete direct link
    • List files
    • List file activities
    • Get file info
    • Get thumbnail URL
    • Update file content
    • Create viewer session
    • Create file
    • Rename file
    • Move or copy files
    • Create download URL
    • Restore from trash bin
    • Delete file
    • Force unlock
    • Patch metadata
    • Mount storage policy
    • Update view setting
  • Share
    • Create share link
    • Edit share link
    • Get share link info
    • List my share links
    • Delete share link
  • VAS
    • Payment
      • Create a payment
      • Get payment status
    • GiftCode
      • Check gift code
      • Redeem gift code
  • Group
    • List groups
  • WebDAV
    • List accounts
    • Create account
    • Update account
    • Delete account
  1. Remote Download

Create remote download

POST
/workflow/download
Auth: JWT Required
Create a remote download task.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Body Params application/json
dst
string 
required
URI of the destination folder.
src_file
string 
optional
URI of the source torrent file. If this field is empty, src is required.
src
array[string]
optional
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.
preferred_node_id
string 
optional
ID of preferred node to process
Examples
{
    "src_file": "cloudreve://my/big-buck-bunny_202112_archive.torrent",
    "dst": "cloudreve://my",
    "preferred_node_id": "m9uO"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
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

🟢200Success
application/json
Body
data
object 
required
code
integer 
required
Response code.
0 - Success.
Default:
0
Example:
0
msg
string 
optional
Human readable error message (if any).
Example
{
    "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
Previous
Complete OBS upload
Next
Select files to download
Built with