---
title: "Generate Download Url Endpoint"
method: POST
path: "/generateDownloadUrl"
---

# Generate Download Url Endpoint

`POST /generateDownloadUrl`

Generates a presigned URL for downloading images. If only one image is requested,
returns a direct download URL for that image. If multiple images, creates a ZIP file.

Request Body:
    imageIds: List of image IDs to include
    projectId: Project ID for the images
    
Returns:
    JSON response with:
        - downloadUrl: The presigned URL
        - filename: The filename for download
        - isZip: Boolean indicating if it's a ZIP file or single image
    
Errors:
    - 500 if download generation fails

## Request body

- ZipDownloadRequest
  - `imageIds` string[], required
  - `projectId` integer, required
  - `size` string, nullable

## 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)
