---
title: "Glob a sandbox filesystem"
method: POST
path: "/api/v2/sandboxes/{sandbox_id}/glob"
tags: ["sandboxes"]
---

# Glob a sandbox filesystem

`POST /api/v2/sandboxes/{sandbox_id}/glob`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v2/sandboxes/{sandbox_id}/glob`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Find files under a root path matching a glob pattern (supports **). Entries are returned in lexical order by path.

## Path parameters

- `sandbox_id` string, required

## Request body

- SandboxesGlobRequest
  - `limit` integer
  - `path` string
  - `pattern` string

## Response `200`

OK

- SandboxesGlobResponse
  - `matches` SandboxapiFileInfo[]
    - `is_dir` boolean
    - `modified_at` string
    - `path` string
    - `size_bytes` integer
  - `truncated` boolean

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/sandboxes/:sandbox_id/glob/post.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
