Skip to main content
The file API lets you interact with the filesystem inside your sandboxes.

Endpoints

All file operations are scoped to a sandbox ID. Available for both E2B and Daytona:
  • GET /api/e2b/<sandboxId>/files/list — List files in a directory
  • GET /api/e2b/<sandboxId>/files/read — Read file contents
  • POST /api/e2b/<sandboxId>/files/write — Write file contents
  • GET /api/e2b/<sandboxId>/files/info — Get file metadata
Replace e2b with daytona for Daytona sandboxes.

Examples

List files

Read a file

Write a file

Get file info