---
title: "previewS3File"
method: POST
path: "/v1/files:previewS3"
tags: ["Preview"]
---

# previewS3File

`POST /v1/files:previewS3`

Generate a thumbnail preview from an S3 reference.

Use this endpoint when you have the S3 bucket and key but not the file entity ID.

## Query parameters

- `w` integer
- `h` integer

## Request body

- S3Ref
  - `bucket` string, required
  - `key` string, required

## Response `200`

Generated thumbnail image

## Other responses

- `400` — Invalid request parameters or payload
- `401` — Authentication required or invalid credentials
- `404` — The requested resource was not found
- `500` — An unexpected error occurred on the server

---

[API](https://skmtc.net/epilot/apis/file-api.md) · [All operations](https://skmtc.net/epilot/apis/file-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/epilot/file-api/revisions/4d61b97f1e97/schema)
