E2B

E2B Filesystem API

The Filesystem API from E2B — 10 operation(s) for filesystem.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /files Download a file from a sandbox · Download a file #
Ask an LLM
“How do I download a file from my sandbox environment?”
“Can I download a file only if it changed since a given date?”
Tell an agent
Download file {path} from sandbox {sandbox}.
Download {path} from sandbox {sandbox} on port {port}.
POST /files Upload a file to a sandbox · Upload a file and ensure the parent directories exist. #
Ask an LLM
“How do I upload a file into a sandbox?”
“Can I set metadata on a file when I upload it?”
Tell an agent
Upload {file} to {path} in sandbox {sandbox}.
Upload {file} to {path} on sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/CreateWatcher Watch a directory for changes · CreateWatcher #
Ask an LLM
“How do I watch a directory for file changes in a sandbox?”
“Can I watch subdirectories recursively?”
Tell an agent
Create a watcher on {path} in sandbox {sandbox}.
Watch {path} recursively in sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/GetWatcherEvents Get events from a file watcher · GetWatcherEvents #
Ask an LLM
“How do I read the events a file watcher produced?”
“What does a watcher return when no events are pending?”
Tell an agent
Get events from watcher {watcher} in sandbox {sandbox}.
Poll watcher {watcher} on sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/ListDir List files in a directory · ListDir #
Ask an LLM
“How do I list the files in a directory of a sandbox?”
“Can I list a directory to a certain depth?”
Tell an agent
List the files in {path} in sandbox {sandbox}.
List {path} to depth {depth} on sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/MakeDir Create a directory in a sandbox · MakeDir #
Ask an LLM
“How do I create a directory inside a sandbox?”
“Can I create a directory that doesn't exist yet?”
Tell an agent
Create directory {path} in sandbox {sandbox}.
Make {path} in sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/Move Move a file or directory · Move #
Ask an LLM
“How do I move a file from one location to another in a sandbox?”
“Can I rename a directory inside a sandbox?”
Tell an agent
Move {source} to {destination} in sandbox {sandbox}.
Rename {source} to {destination} on sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/Remove Delete a file or directory · Remove #
Ask an LLM
“How do I delete a file from a sandbox?”
“Can I remove a directory and everything in it?”
Tell an agent destructive · confirm first
Remove {path} from sandbox {sandbox}.
Delete {path} on sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/RemoveWatcher Stop watching a directory · RemoveWatcher #
Ask an LLM
“How do I stop a file watcher I created?”
“Can I remove a watcher so it stops sending events?”
Tell an agent destructive · confirm first
Remove watcher {watcher} in sandbox {sandbox}.
Stop watching {watcher} on sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/Stat Get file or directory info · Stat #
Ask an LLM
“How do I check the size and permissions of a file in a sandbox?”
“What metadata does a file have in a sandbox?”
Tell an agent
Stat {path} in sandbox {sandbox}.
Show file info for {path} on sandbox {sandbox} port {port}.
POST /filesystem.Filesystem/WatchDir Stream changes to a sandbox directory · WatchDir #
Ask an LLM
“Can I get a live stream of file changes in a sandbox folder?”
“What happens when I open a streaming watch on a sandbox directory?”
Tell an agent
Open a streaming directory watch on sandbox {sandbox} using port {port}.
Start a Connect server-stream of file events for sandbox {sandbox} with a {timeout} ms timeout.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/e2b-dev:e2b-dev-filesystem-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

e2b-dev-filesystem-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: E2B Filesystem API
  version: 0.1.0
  description: Complete E2B developer API. Platform endpoints are served on api.e2b.app. Sandbox endpoints (envd) are served on the shared sandbox host (sandbox.e2b.app); target a specific sandbox with the E2b-Sandbox-Id and E2b-Sandbox-Port headers.
servers:
- url: https://api.e2b.app
  description: E2B Platform API
security: []
tags:


# --- truncated at 32 KB (84 KB total) ---
# Full source: https://artifacts.apis.io/e2b-dev/openapi/e2b-dev-filesystem-api-openapi.yml