latestOpenAPI 3.0.32026-08-15374594.4 KB
4d61b97f1e97
Preview
previewFile
Generate a thumbnail preview for a file entity.
Supported file types include images (PNG, JPEG, GIF, WebP), PDFs, and common document formats. The preview is returned as an image (PNG or JPEG).
Tip: Use with CookieAuth to embed previews directly in <img> tags.
get/v1/files/{id}/preview
Path parameters
The UUID of the file entity
Query parameters
versioninteger
Index of the file version to preview (0 = latest)
winteger
Desired width in pixels (maintains aspect ratio if only width is specified)
hinteger
Desired height in pixels (maintains aspect ratio if only height is specified)
Response
Generated thumbnail image