Files

Get a preview URL

Returns a short-lived presigned URL (inline disposition) for a ready, preview-eligible file (images and PDFs); load the bytes directly from that URL before it expires. The URL grants access to the file contents — treat it as a secret and request a fresh one per render. Responds 409 until the file is ready, and 415 when the file cannot be previewed inline.

get/api/v1/files/{fileId}/preview

Request

  • Base URL
    https://app.khotan.com
  • URL
    https://app.khotan.com/api/v1/files/{fileId}/preview
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Path parameters

fileIdstring required

Response

The presigned preview URL and its expiry.

urlstring required

Short-lived presigned GET URL with inline disposition for rendering in-browser.

expiresAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.