Skip to main content
GET
File Exists
Checks whether a file or directory exists at the given path inside the sandbox. Returns { "exists": true } or { "exists": false }. Use this endpoint to guard against re-writing files that already exist, or to verify that a command produced its expected output.

Path Parameters

string
required
The sandbox identifier. Format: sbx-<8 chars>.

Query Parameters

string
required
Absolute path to check inside the sandbox.Example: /home/user/script.py

Response

boolean
true if the path exists (as any entry type), false otherwise.

Example

Response (exists)
Response (not found)

Error Responses