Skip to content

Glob

POST
/v1/sandbox/{sandboxID}/filesystem/glob

Search for files matching a glob pattern under the given path.

sandboxID
required
string

Unique sandbox identifier.

object
path
required

Base directory to search from.

string
pattern

Glob pattern to match file names against.

string
nullable
exclude

Glob patterns to exclude (e.g. node_modules, .git).

Array<string>

List of matching file paths.

object
items
required

List of matching file paths.

Array<string>

Bad request – validation error.

object
message
required

Summary message, e.g. “Invalid request”.

string
errors
required
Array<object>
object
field
required

JSON field name that failed validation (e.g. “path”, “command”).

string
error
required

Human-readable description of the validation failure.

string

Unauthorized – invalid or missing API key.

object
message
required

Human-readable error message.

string