Skip to main content
Read file contents from the sandbox. Only allowed paths like /workspace and /tmp can be read.

Endpoint

Request

Headers

Query Parameters

Example Request

Response

Success (200 OK)

Response Fields

Status Codes

Errors

File Not Found (404)

Cause: The file doesn’t exist. Fix: Verify the file path and ensure the file exists.

Path Not Allowed (403)

Cause: The path is outside allowed directories. Fix: Only read files from /workspace, /tmp, or other explicitly allowed paths.

Allowed Paths

You can read files from:
  • /workspace/* - Main working directory
  • /tmp/* - Temporary files
  • Other paths may be allowed depending on sandbox configuration

Use Cases

Read Configuration File

Read Log File

Read CSV Data

Check File Size

Read and Process

Next Steps