---
title: "Retrieve presigned URL to retrieve the file"
method: GET
path: "/files/{id}/presignedurl"
tags: ["storage"]
---

# Retrieve presigned URL to retrieve the file

`GET /files/{id}/presignedurl`

Retrieve presigned URL to retrieve the file. Expiration of the URL is
determined by bucket configuration

## Path parameters

- `id` string, required

## Response `200`

File gathered successfully

- PresignedURLResponse — Contains a presigned URL for direct file operations.
  - `url` string, required — The presigned URL for file operations.
  - `expiration` integer, required — The time in seconds until the URL expires.

## Other responses

- `default` — Some error occurred

---

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