Get a preview image
GET/api/v1/preview/:type/:id/:hash
Returns the generated thumbnail image for the file at path. Clients do not build this URL; they use the previewUrl of an entry.
Thumbnails are generated in the background, so a 412 response means there is no thumbnail for this file yet; retry later.
Who may fetch it depends on type: for files, only the user named by id; for shares, anyone the share allows, without a session for public link and email shares; for groups, members of the group folder (any role). path must stay inside that home, share or group folder, the file must exist, and hash must belong to that file.
To avoid revealing what exists, a wrong user, a group folder the caller does not belong to, a missing or escaping path, or a hash of another file returns 404 rather than 403. A password-protected share returns 423 until unlocked.
Request
Responses
- 200
- 401
- 403
- 404
- 412
- 423
Thumbnail image.
Request failed.
Request failed.
Request failed.
Request failed.
Request failed.