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

# Generate Download Url Endpoint

`POST /generateDownloadUrl`

## 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/generateDownloadUrl`
- Auth: none declared

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