- Site
- Session
- User
- Callback
- Workflow
- File
- Permission
- Upload
- Pin
- Version
- Direct Link
- List filesGET
- List file activitiesGET
- Get file infoGET
- Get thumbnail URLGET
- Update file contentPUT
- Create viewer sessionPUT
- Create filePOST
- Rename filePOST
- Move or copy filesPOST
- Create download URLPOST
- Restore from trash binPOST
- Delete fileDELETE
- Force unlockDELETE
- Patch metadataPATCH
- Mount storage policyPATCH
- Update view settingPATCH
- Share
- VAS
- Group
- WebDAV
Create direct links
PUT
/file/source
Auth: JWT Required
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
uris
array[string]
required
Example
{
"uris": [
"cloudreve://my/Inspirations/cloudreve_4.0.0-beta.7_windows_amd64.zip",
"cloudreve://my/Inspirations/archive.zip"
]
}
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 --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
🟢200Success
application/json
Body
data
array [object {2}]  | nullÂ
optional
link
stringÂ
required
file_url
stringÂ
required
code
integerÂ
required
0
- Success.Default:
0
Example:
0
msg
stringÂ
optional
error
string  | nullÂ
optional
aggregated_error
object  | nullÂ
optional
Response
.Additional properties
object (Response)Â
optional
correlation_id
string <uuid> | nullÂ
optional
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Examples
{
"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-06-27 03:20:42