List directory contents
POST /v1/sandbox/{sandboxID}/filesystem/ls
List files and directories at the given path inside the sandbox.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Unique sandbox identifier.
Request Body required
Section titled “Request Body required ”object
Directory path to list.
Example
/home/userList contents recursively.
Glob patterns to exclude (e.g. node_modules, .git).
Responses
Section titled “ Responses ”Directory listing.
object
List of file and directory entries.
object
File or directory name.
Full path.
Whether this entry is a directory.
File size in bytes.
Octal permission string (e.g. 755).
Last modification time as Unix timestamp (seconds).
File owner.
File group.
Whether this entry is a symbolic link.
Target path if this entry is a symbolic link.
Bad request – validation error.
object
Summary message, e.g. “Invalid request”.
object
JSON field name that failed validation (e.g. “path”, “command”).
Human-readable description of the validation failure.
Unauthorized – invalid or missing API key.
object
Human-readable error message.
Resource not found.
object
Human-readable error message.