---
title: "Download file"
method: GET
path: "/files/{id}/download"
tags: ["Files"]
---

# Download file

`GET /files/{id}/download`

## Request

- Base URL: `https://api.toriihq.com/v1.0`
- URL: `https://api.toriihq.com/v1.0/files/{id}/download`
- Auth: API key in header `Authorization`

Use the following code snippet to download a file that was uploaded to Torii

`curl -L -H "Authorization: Bearer API_KEY" -o {OUTPUT_FILE_NAME} "https://api.toriihq.com/v1.0/files/{FILE_ID}/download"`

* * *

`curl -L -H "Authorization: Bearer API_KEY" -o downloaded_file.json "https://api.toriihq.com/v1.0/files/1000/download"`

*   Rate limit: 600 requests per minute

## Path parameters

- `id` integer, required

## Other responses

- `302`: Found

---

[API](https://skmtc.dev/toriihq/apis/torii-api-documentation.md) - [All operations](https://skmtc.dev/toriihq/apis/torii-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/toriihq/apis/torii-api-documentation/revisions/15fd1512591b?raw)
