WatchDir
Server-streaming RPC. Use the Connect protocol with streaming support.
Documentation Index
Fetch the complete documentation index at: https://e2b.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Sandbox access token (envdAccessToken) for authenticating requests to a running sandbox. Returned by: POST /sandboxes (on create), POST /sandboxes/{sandboxID}/connect (on connect), POST /sandboxes/{sandboxID}/resume (on resume), and GET /sandboxes/{sandboxID} (for running or paused sandboxes).
Optional system user for the operation. Sets file ownership and resolves relative paths. Pass the desired username with no password. Defaults to the sandbox's default user when omitted.
Headers
Define the version of the Connect protocol
Define the timeout, in ms
Response
Stream of WatchDirResponse events
- WatchDirResponse
- WatchDirResponse
- WatchDirResponse