---
title: "Generate Pre-signed Upload URL"
method: POST
path: "/get-upload-url"
tags: ["Upload"]
---

# Generate Pre-signed Upload URL

`POST /get-upload-url`

Generates a pre-signed URL for secure direct file upload to cloud storage.
The URL expires after a specified duration for security.

**Note**: File size is limited to 100MB per upload.

## Request body

- object
  - `originalFileName` string, required — Original name of the file to be uploaded
  - `fileType` 'image/jpeg' | 'image/png' | 'image/webp', required — MIME type of the file
  - `fileSize` integer, required — File size in bytes (max 100MB)

## Response `200`

Pre-signed URL generated successfully

- object
  - `status` 'success', required
  - `data` object, required
    - `uploadURL` string, uri, required — Pre-signed URL for upload
    - `fileName` string, required — Generated unique filename
    - `fileType` string — MIME type of file
    - `fileSize` integer — File size in bytes
    - `originalFileName` string — Original filename
    - `createdAt` integer — URL creation timestamp (Unix ms)
    - `expiresAt` integer, required — URL expiration timestamp (Unix ms)

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication failed or API key missing
- `429` — Rate limit exceeded
- `500` — Internal server error occurred

---

[API](https://skmtc.net/upscayl/apis/upscayl-cloud-api.md) · [All operations](https://skmtc.net/upscayl/apis/upscayl-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upscayl/upscayl-cloud-api/versions/2320ccb2ffed/schema)
