v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
workspace

Preview file by ID

Return a cheap preview of a file.

Images/PDFs/Office docs are returned as a small WebP thumbnail; text-like files return only their first bytes bytes. Used by the Artifacts page so a grid of files no longer downloads every file in full.

get/api/workspace/files/{file_id}/preview

Path parameters

file_idstring required

Query parameters

winteger
bytesinteger

Response

Successful Response

{"stackTrail":"paths:/api/workspace/files/{file_id}/preview:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}