workspace

Preview file by ID

Changed on

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

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Path parameters

file_idstring required

Query parameters

winteger
bytesinteger

Response

Successful Response

unknown required

Changes