- 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
Get file info
GET
/file/info
Auth: JWT Optional
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Query Params
uri
string
optional
id
is required.Example:
cloudreve://my/file.txt
id
string
optional
uri
is required. Getting file info by ID is only available to the owner of the file or administrators.Example:
98XDX8Sr
extended
boolean
optional
folder_summary
boolean
optional
Header Params
X-Cr-Purchase-Ticket
string
optional
Example:
1f63aa26-edc0-40ce-950a-cb4d4323158e
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 GET '/file/info?uri=cloudreve://my/file.txt&id=98XDX8Sr&extended&folder_summary' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e'
Responses
🟢200Success
application/json
Body
data
object (FileResponse)
required
type
enum<integer>
required
Allowed values:
01
id
string
required
name
string
required
metadata
with name sys:restore_uri
, which can be parsed as a URI.Example:
btn_google_signin_dark_normal_web@2x.png
permission
string | null
optional
null
, all permissions are granted.Permission definition can be found at File Permissions
created_at
string <date-time>
required
Example:
2025-05-24T10:55:22+08:00
updated_at
string <date-time>
required
Example:
2025-05-24T10:55:22+08:00
size
integer
required
Example:
7536
metadata
object
required
Some special metadata might affect the file's behavior, please refer to Metadata for details.
path
string
required
Example:
cloudreve://my/%E9%97%A8%E7%A5%A8/btn_google_signin_dark_normal_web%402x.png
shared
boolean
optional
owned
boolean
required
primary_entity
string | null
optional
extended_info
optional
folder_summary
optional
code
integer
required
0
- Success.Default:
0
Example:
0
msg
string
optional
error
string | null
optional
correlation_id
string <uuid> | null
optional
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Examples
{
"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": ""
}
Modified at 2025-06-27 02:54:32