---
title: "Download a dataset file"
method: GET
path: "/api/Dataset/{datasetId}/files/{fileId}/download"
tags: ["Dataset Management"]
---

# Download a dataset file

`GET /api/Dataset/{datasetId}/files/{fileId}/download`

Downloads the specified file from the dataset. The downloaded file is redacted based on the dataset configuration.

## Path parameters

- `datasetId` string, required
- `fileId` string, required

## Query parameters

- `jsonDownloadAs` string

## Response `200`

Returns the redacted file stream

- string, binary

## Other responses

- `400` — Invalid request parameters or unsupported file type for the requested operation
- `404` — Dataset or file not found
- `409` — File is still processing
- `500` — An unexpected error occurred during redaction processing

---

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