---
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).

Raises:
    HTTPException(400): The path shape is invalid (traversal, absolute,
        null byte, etc.). No I/O is attempted.
    HTTPException(404): The file does not exist in the requesting user's
        sandbox. Same status for sandbox-internal "not found" and for
        "path resolves outside the user namespace" — by design, to avoid
        leaking namespace existence to another tenant.
    HTTPException(413): The file is larger than ``MAX_FILE_SIZE_BYTES``.
    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

---

[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)
