---
title: "Get or download a file"
method: GET
path: "/api/w/{wId}/files/{fileId}"
tags: ["Private Files"]
---

# Get or download a file

`GET /api/w/{wId}/files/{fileId}`

View or download a file. Skill attachments require read access to their associated skill. Use query parameters `version` (original, processed, public) and `action` (view, download).

## Path parameters

- `wId` string, required
- `fileId` string, required

## Query parameters

- `version` 'original' | 'processed' | 'public'
- `action` 'view' | 'download'

## Response `200`

File content or redirect to download URL

## Other responses

- `302` — Redirect to signed download URL
- `404` — File not found

---

[API](https://skmtc.net/dust-tt/apis/dust-api-documentation.md) · [All operations](https://skmtc.net/dust-tt/apis/dust-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dust-tt/dust-api-documentation/versions/5834d690c29d/schema)
