v49

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01151216390.1 KB
Devbox
Devbox-FileTools

Read text file contents from Devbox filesystem.

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.

post/v1/devboxes/{id}/read_file_contents

Path parameters

idstring required

The Devbox ID.

Request body

file_pathstring required

The path on the Devbox filesystem to read the file from. Path is relative to user home directory.

Response

OK