---
title: "Get presigned URL for downloadable product upload"
method: POST
path: "/public/get-presigned-url-for-downloadable-product-upload"
tags: ["Product"]
---

# Get presigned URL for downloadable product upload

`POST /public/get-presigned-url-for-downloadable-product-upload`

Generate a presigned URL to upload files for a downloadable product

Authentication with the "FERMION-API-KEY" header is required to use this endpoint.

Rate limit: Maximum 60 requests in a window of 1m.

## Request body

- object
  - `data` object[], required
    - `data` object, required
      - `productSlug` string, required — Slug of the downloadable product returned from create-downloadable-product
      - `fileNameWithExtension` string, required — Filename with extension for the file to upload (e.g., "my-file.pdf", "archive.zip", "document.docx")

## Response `200`

API Response Body

- object[]
  - `output` union, required
    - object
      - `status` 'ok', required
      - `data` object, required
        - `r2KeyForOriginalDownloadableProductPdf` string, required — R2/S3 key for the uploaded file. Use this in the process-uploaded-downloadable-product API call after uploading.
        - `presignedUrl` string, uri, required — Presigned URL for uploading the file. Make a PUT request to this URL with the file as the body. URL expires in 1 hour.
    - object
      - `status` 'error', required
      - `errorMessage` string, required

---

[API](https://skmtc.net/fermion/apis/fermion-backend-api.md) · [All operations](https://skmtc.net/fermion/apis/fermion-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fermion/fermion-backend-api/revisions/7ce364c8820b/schema)
