---
title: "Get File Download Url"
method: GET
path: "/api/v1/files/{file_id}/download"
tags: ["files"]
---

# Get File Download Url

`GET /api/v1/files/{file_id}/download`

Generate presigned URL for downloading a file.

The URL is valid for the specified expiry time (default: 1 hour).

Args:
    file_id: File ID
    expires_in: URL expiry time in seconds (default: 3600, max: 86400)

## Path parameters

- `file_id` integer, required

## Query parameters

- `expires_in` integer

## Cookies

- `wos-session` string
- `datalab_active_team` string

## Response `200`

Successful Response

- FileDownloadResponse — Response with presigned download URL.
  - `download_url` string, required — Presigned URL for downloading the file
  - `expires_in` integer, required — URL expiry time in seconds
  - `file_id` integer, required — File ID
  - `original_filename` string, required — Original filename

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/datalab/apis/datalab-api.md) · [All operations](https://skmtc.dev/datalab/apis/datalab-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datalab/datalab-api/revisions/aa9f8ee18efb/schema)
