---
title: "Generate Thumbnail Endpoint"
method: POST
path: "/generateThumbnail/{image_id}"
---

# Generate Thumbnail Endpoint

`POST /generateThumbnail/{image_id}`

Generates a thumbnail for the given image if it doesn't exist, uploads it to S3,
and marks has_thumbnail = TRUE in the DB. Returns the presigned thumbnail URL.

## Path parameters

- `image_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/pavoot/apis/fastapi.md) · [All operations](https://skmtc.dev/pavoot/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pavoot/fastapi/revisions/16997cca6697/schema)
