---
title: "Download File"
method: GET
path: "/api/v2/files/{file_id}"
tags: ["Files"]
---

# Download File

`GET /api/v2/files/{file_id}`

Download a file by its ID or return its content as a string/bytes.

Args:
    file_id: UUID of the file.
    current_user: Authenticated user.
    session: Database session.
    storage_service: File storage service.
    return_content: If True, return raw content (str) instead of StreamingResponse.

Returns:
    StreamingResponse for client downloads or str for internal use.

## Path parameters

- `file_id` string, uuid, required

## Query parameters

- `return_content` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.net/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
