---
title: "Generate download URL"
method: POST
path: "/attachments/v1/files/download-url"
tags: ["Attachments:v1:Files"]
deprecated: true
---

# Generate download URL

`POST /attachments/v1/files/download-url`

> **Deprecated.**

Generates a time limited URL for downloading a file.

## Request body

- FileDownloadURLRequest
  - `fileUrl` string, required — The full URL of the file to generate a download URL for
  - `expirationInSeconds` integer — The expiration time of the URL in seconds (min: 5, max: 86400 / 24 hours)

## Response `200`

Successful Response

- APIResponseFileDownloadURLResponse
  - `requestId` string
  - `data` FileDownloadURLResponse, required
    - `url` string, required — The URL for downloading the file.
    - `expiresInSeconds` integer, required — The expiration time of the URL in seconds

## Other responses

- `422` — Validation Error

---

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