Authorization: Bearer ********************
true
.uris
.true
, the HTTP response will use 302 status code to redirect to target URL instead of returning result in JSON response.uris
and archive
is false
. Specify preferred ID of the file blob.Host
that the client site requesting the API (If the Host
is presented in primary/secondary site URL setting in dashboard). If you wish to force using primary site URL, please set this to true
.false
or omited, the whole request will fail if errors occurs for any items in uris
.true
, only one URl will be returned for multiple target files. This URL will trigger server-side archving for target files, resulting in one .zip
file containing all target files.{
"uris": [
"cloudreve://my/The%20Man.mp3",
"cloudreve://my/Taylor%20Swift%20-%20Untouchable%20(Taylor%E2%80%99s%20Version).mp3",
"cloudreve://my/%E9%81%A0%E9%87%8E%E3%81%B2%E3%81%8B%E3%82%8B%20-%20LOVE%202000.mp3",
"cloudreve://my/Taylor%20Swift%20-%20Guilty%20as%20Sin.mp3"
],
"archive": true
}
curl --location --request POST '/file/url' \
--header 'X-Cr-Context-Hint: b832b998-7ece-4ffd-ba6b-afb64530ca70' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e' \
--header 'Content-Type: application/json' \
--data-raw '{
"uris": [
"cloudreve://my/The%20Man.mp3",
"cloudreve://my/Taylor%20Swift%20-%20Untouchable%20(Taylor%E2%80%99s%20Version).mp3",
"cloudreve://my/%E9%81%A0%E9%87%8E%E3%81%B2%E3%81%8B%E3%82%8B%20-%20LOVE%202000.mp3",
"cloudreve://my/Taylor%20Swift%20-%20Guilty%20as%20Sin.mp3"
],
"archive": true
}'
urls
.0
- Success.Response
.{
"code": 0,
"data": {
"urls": [
{
"url": "http://localhost:5173/api/v4/file/archive/56bb8329-3afa-4137-9ebb-2a07b6ea19b9/archive.zip?sign=1CgU15Is0ezKeTVKE_OAu2tJJoB6lN5s_DvRXTcP7GQ%3D%3A1749525301"
}
],
"expires": "2025-06-10T11:15:01.186053+08:00"
},
"msg": ""
}