---
title: "Read text file contents from Devbox filesystem."
method: POST
path: "/v1/devboxes/{id}/read_file_contents"
tags: ["Devbox", "Devbox-FileTools"]
---

# Read text file contents from Devbox filesystem.

`POST /v1/devboxes/{id}/read_file_contents`

Read file contents from a file on a Devbox as a UTF-8. Note 'downloadFile' should be used for large files (greater than 100MB). Returns the file contents as a UTF-8 string.

## Path parameters

- `id` string, required

## Request body

- DevboxReadFileParameters
  - `file_path` string, required — The path on the Devbox filesystem to read the file from. Path is relative to user home directory.

## Response `200`

OK

## Other responses

- `404` — Devbox not found.

---

[API](https://skmtc.net/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.net/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/runloopai/runloop-api/versions/ef553a04de89/schema)
