---
title: "Retrieve contents of file"
method: GET
path: "/files/{id}/presignedurl/contents"
tags: ["storage", "excludeme"]
---

# Retrieve contents of file

`GET /files/{id}/presignedurl/contents`

Retrieve contents of file

## Path parameters

- `id` string, required

## Query parameters

- `X-Amz-Algorithm` string, required
- `X-Amz-Credential` string, required
- `X-Amz-Date` string, required
- `X-Amz-Expires` string, required
- `X-Amz-Signature` string, required
- `X-Amz-SignedHeaders` string, required
- `X-Amz-Checksum-Mode` string, required
- `X-Amz-Security-Token` string
- `x-id` string, required
- `q` integer
- `h` integer
- `w` integer
- `b` number
- `f` 'auto' | 'same' | 'jpeg' | 'webp' | 'png' | 'avif' | 'heic' — Output format for image files. Use 'auto' for content negotiation based on Accept header

## Headers

- `if-match` string
- `if-none-match` string
- `if-modified-since` string — Date in RFC 2822 format
- `if-unmodified-since` string — Date in RFC 2822 format
- `Range` string

## Response `200`

File content retrieved successfully

## Other responses

- `206` — Partial file content retrieved successfully
- `304` — File not modified since the condition specified in If-Modified-Since or If-None-Match headers
- `412` — Precondition failed for conditional request headers (If-Match, If-Unmodified-Since, If-None-Match)
- `default` — Error occurred

## Changes

- **2025-11-19** `03a69e06fb94` — 1 info
  - added the new enum value `heic` to the `query` request parameter `f`
- **2025-09-25** `86f040df2264` — 1 breaking
  - removed the enum value `heic` from the `query` request parameter `f`

[Change history](https://skmtc.dev/nhost/apis/nhost-storage-api/changes/files/:id/presignedurl/contents/get.md)

---

[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)
