Create a direct link that can be used to access the file's content directly. Only file owners or administrators can create direct links.
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Body Params application/json
{
"uris": [
"cloudreve://my/Inspirations/cloudreve_4.0.0-beta.7_windows_amd64.zip",
"cloudreve://my/Inspirations/archive.zip"
]
}
Request Code Samples
curl --location --request PUT '/file/source' \
--header 'Content-Type: application/json' \
--data-raw '{
"uris": [
"cloudreve://my/Inspirations/cloudreve_4.0.0-beta.7_windows_amd64.zip",
"cloudreve://my/Inspirations/archive.zip"
]
}'
Responses
application/json {
"code": 0,
"data": [
{
"link": "http://localhost:5173/f/b8JH4/cloudreve_4.0.0-beta.7_windows_amd64.zip",
"file_url": "cloudreve://my/Inspirations/cloudreve_4.0.0-beta.7_windows_amd64.zip"
},
{
"link": "http://localhost:5173/f/8Qeue/archive.zip",
"file_url": "cloudreve://my/Inspirations/archive.zip"
}
],
"msg": ""
}
Modified at 2025-08-12 07:13:02