Authorization: Bearer ********************
id
is required.uri
is required. Getting file info by ID is only available to the owner of the file or administrators.curl --location --request GET '/file/info?uri=cloudreve://my/file.txt&id=98XDX8Sr&extended&folder_summary' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e'
metadata
with name sys:restore_uri
, which can be parsed as a URI.null
, all permissions are granted.0
- Success.{
"code": 0,
"data": {
"type": 0,
"id": "98XDX8Sr",
"name": "melk-abbey-library.jpg",
"permission": null,
"created_at": "2025-05-13T14:31:52+08:00",
"updated_at": "2025-05-13T14:31:55+08:00",
"size": 1682177,
"metadata": {
"exif:camera_make": "NIKON",
"exif:camera_model": "E5700",
"exif:des": "",
"exif:exposure_bias": "0.000000",
"exif:exposure_time": "1/7",
"exif:f": "2.800000",
"exif:flash": "0",
"exif:focal_length": "35",
"exif:iso": "100",
"exif:orientation": "1",
"exif:software": "E5700v1.1",
"exif:taken_at": "2003-09-22T14:13:44Z",
"exif:x": "2560",
"exif:y": "1920"
},
"path": "cloudreve://my/Inspirations/test_folder/images/melk-abbey-library.jpg",
"capability": "39/9AQ==",
"owned": true,
"primary_entity": "mxB6SM",
"extended_info": {
"storage_policy": {
"id": "eVtl",
"name": "OneDrive",
"type": "onedrive",
"max_size": 0
},
"storage_policy_inherited": false,
"storage_used": 1682177,
"entities": [
{
"id": "mxB6SM",
"size": 1682177,
"type": 0,
"created_at": "2025-05-13T14:31:52+08:00",
"storage_policy": {
"id": "eVtl",
"name": "OneDrive",
"type": "onedrive",
"max_size": 0
},
"created_by": {
"id": "bnUn",
"nickname": "Luke Skywalker",
"avatar": "file",
"created_at": "2023-08-06T19:21:59+08:00"
}
}
],
"direct_links": [
{
"id": "xMxIa",
"url": "http://localhost:5173/f/xMxIa/melk-abbey-library.jpg",
"downloaded": 0,
"created_at": "2025-06-26T17:55:30+08:00"
}
]
}
},
"msg": ""
}