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

# Generate Thumbnail Endpoint

`POST /generateThumbnail/{image_id}`

## Request

- Base URL: `https://api.pavoot.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pavoot.com/generateThumbnail/{image_id}`
- Auth: none declared

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/pavoot-api.md) - [All operations](https://skmtc.dev/pavoot/apis/pavoot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pavoot/apis/pavoot-api/revisions/8c0cd91c2a05?raw)
