Get a file thumbnail

View as Markdown

Streams the cached JPEG thumbnail for an image/PDF file. 404 when the file has no thumbnail.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired
fileIdstringRequired

Response

The JPEG thumbnail bytes.

Errors

401
Unauthorized Error
404
Not Found Error