v37

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-11200148.2 KB
Stacks

Read a file from the sandbox

Reads file content from inside the sandbox (using exec under the hood)

get/v1/stacks/{id}/read-file

Path parameters

idstring required

Stack identifier

Example:stk_abc123

Query parameters

pathstring required

Absolute path inside the sandbox

Example:/workspace/index.html

Response

File content

pathstring required
contentstring required