---
title: "Get local sandbox details"
method: GET
path: "/local-sandbox/{local_sandbox_id}"
tags: ["local-sandbox"]
---

# Get local sandbox details

`GET /local-sandbox/{local_sandbox_id}`

## Request

- Base URL: `https://api.klavis.ai`
- URL: `https://api.klavis.ai/local-sandbox/{local_sandbox_id}`
- Auth: HTTP bearer

Retrieves details about a local sandbox environment, including its status and all running servers.

## Path parameters

- `local_sandbox_id` string, required: The ID of the local sandbox to retrieve

## Response `200`

Successful Response

- LocalSandboxInfo
  - `local_sandbox_id` string, required: Unique identifier for the local sandbox environment
  - `created_at` string, required: Timestamp when the sandbox was created
  - `status` 'idle' | 'occupied' | 'error': Status of a sandbox instance - matches database enum
  - `benchmark` string, nullable: Benchmark environment configuration for the local sandbox
  - `servers` LocalSandboxServerItem[], required: List of MCP servers in this sandbox
    - `server_name` string, nullable: Name of the MCP server
    - `id` string, required: Unique identifier for this specific server instance within the sandbox
    - `mcp_server_url` string, nullable: URL to connect to this specific MCP server instance
    - `status` 'idle' | 'occupied' | 'error': Status of a sandbox instance - matches database enum
    - `benchmark` string, nullable: Benchmark environment configuration
    - `updated_at` string, nullable: Last update timestamp
    - `metadata` object, nullable: Additional metadata for the sandbox
    - `auth_data` object, nullable: Authentication data for the sandbox
    - `tags` string[], nullable: Sandbox tags

## Other responses

- `422`: Validation Error

## Changes

- **2026-04-03** `717d658593ea`: 2 breaking
  - response property `servers/items/tags` list-of-types was widened by adding types `array` to media type `application/json` of response `200`
  - the `servers/items/tags/anyOf[subschema #1]/` response's property type changed from `object` to `array` for status `200`
- **2026-02-16** `5521a71659cc`: 6 info
  - added the optional property `servers/items/auth_data` to the response with the `200` status
  - added the optional property `servers/items/benchmark` to the response with the `200` status
  - added the optional property `servers/items/metadata` to the response with the `200` status
  - added the optional property `servers/items/status` to the response with the `200` status
  - …2 more
- **2026-02-15** `1497930e0a0e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/changes/local-sandbox/:local_sandbox_id/get.md)

---

[API](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) - [All operations](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/revisions/1f05ced7280f?raw)
