If obfuscated is set to true in the response, you need addition step to recover the original image URL. Here's implementation for the decode functioin in multiple languages
JavaScript
Golang
Java
Python
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.
Optional context hint to speed up DB queries. You can get its value from the response of listing files. It is recommended to set this header if you need to perform action on files that are just listed by List files API.
Example:
b832b998-7ece-4ffd-ba6b-afb64530ca70
X-Cr-Purchase-Ticket
stringÂ
optional
Can be used to authenticate to paid share links with a anonymous identity. The ticket value can be obtained after an anonymous user purchase a paid share link.
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/thumb?uri=cloudreve://my/pic.png' \
--header'X-Cr-Context-Hint: b832b998-7ece-4ffd-ba6b-afb64530ca70' \
--header'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e'
Responses
🟢200Success
application/json
Body
data
objectÂ
required
Response content. In some error type, e.g. lock conflicting errors, this field wil present details of the error, e.g. who is locking the current file.
url
stringÂ
required
URL of the thumbnail image. Possibly be obfuscated if obfuscated is true. Please refer to the top of this document for how to decode it.