---
title: "Get File"
method: GET
path: "/api/v1/agentic/files"
tags: ["Agentic"]
---

# Get File

`GET /api/v1/agentic/files`

Return the contents of a sandboxed file as text (or as an attachment).<br><br>Raises:<br>    HTTPException(400): The path shape is invalid (traversal, absolute,<br>        null byte, etc.). No I/O is attempted.<br>    HTTPException(404): The file does not exist in the requesting user's<br>        sandbox. Same status for sandbox-internal "not found" and for<br>        "path resolves outside the user namespace" — by design, to avoid<br>        leaking namespace existence to another tenant.<br>    HTTPException(413): The file is larger than ``MAX_FILE_SIZE_BYTES``.<br>    HTTPException(415): The file is binary (null byte in the first 8 KiB).

## Query parameters

- `path` string, required
- `download` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-08** `a5c4fa6a88f7` — 1 info
  - endpoint added
- **2025-10-16** `9bd3e81318d7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/agentic/files/get.md)

---

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