Preview a personal image

Return authenticated JSON with base64 PNG or JPEG bytes for non-animated images up to 1 MiB, 8192 pixels per side, and 16 megapixels. Other files return unavailable with a reason. Applies the same access rules as downloads and checks access again after reading all bytes. No public URL is issued. Treat images as untrusted content. Already delivered previews cannot be recalled.

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

Request

  • Base URL
    https://www.toma.com
  • URL
    https://www.toma.com/api/me/files/{fileId}/preview
  • Auth
    • HTTP bearer
    • or API key in cookie better-auth.session_token

Path parameters

fileIdstring required

Response

Image preview or unavailable reason.

OR

Changes

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