---
title: "Download file"
method: POST
path: "/download_file"
tags: ["File Handling"]
---

# Download file

`POST /download_file`

## Request body

- object
  - `file_name` string — The name of the file to download.
  - `run_id` string — The ID of the flow run associated with the file.
  - `saved_item_id` string — The saved item ID associated with the file.
  - `user_id` string — Optional. The user ID associated with the flow run.
  - `project_id` string — Optional. The project ID associated with the flow run.

## Response `200`

File downloaded successfully

## Other responses

- `400` — Bad request (missing file_name or other required data)
- `403` — Unauthorized (API key or user verification failed)
- `500` — Internal server error (file download failed)

---

[API](https://skmtc.dev/gumloop/apis/public-api.md) · [All operations](https://skmtc.dev/gumloop/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gumloop/public-api/revisions/115f2d6ce387/schema)
