LangSmith Sandboxes API

The sandboxes API from LangSmith — 12 operation(s) for sandboxes.

GitHub OpenAPI

Operations 17

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /auth/sandbox-access Check whether I can access a sandbox · Get sandbox access decision #
Ask an LLM
“Can I get a token to run code in a sandbox?”
“What does a sandbox access decision return?”
Tell an agent
Check sandbox access for sandbox {sandbox_id} with action {action}.
Decide whether I am allowed to exec in sandbox {sandbox_id}.
GET /v2/sandboxes/boxes List my sandbox claims · List sandbox claims #
Ask an LLM
“Which sandboxes have I claimed?”
“Can I filter my sandbox claims by status?”
Tell an agent
List my sandbox claims.
List sandbox claims with status {status}.
POST /v2/sandboxes/boxes Create a sandbox from a snapshot · Create a sandbox claim #
Ask an LLM
“How do I spin up a new sandbox from a snapshot?”
“Can I set memory and CPU when creating a sandbox?”
Tell an agent
Create a sandbox named {name} from snapshot {snapshot_name}.
Create a sandbox {name} with {vcpus} vCPUs and {mem_bytes} memory.
POST /v2/sandboxes/boxes/batch-delete Delete several sandboxes at once · Batch delete sandbox claims #
Ask an LLM
“Can I delete multiple sandboxes in one request?”
“Is there a bulk delete for sandbox claims?”
Tell an agent destructive · confirm first
Delete the sandboxes named {names}.
Bulk remove sandbox claims {names}.
GET /v2/sandboxes/boxes/{name} Get a sandbox claim · Get a sandbox claim #
Ask an LLM
“What is the status of one of my sandboxes?”
“Are stale sandbox claims still considered provisioned?”
Tell an agent
Get sandbox claim {name}.
Show the status of sandbox {name}.
DELETE /v2/sandboxes/boxes/{name} Delete a sandbox claim · Delete a sandbox claim #
Ask an LLM
“How do I tear down a sandbox and remove its record?”
“Does deleting a sandbox claim stop the runtime?”
Tell an agent destructive · confirm first
Delete sandbox claim {name}.
Remove the sandbox {name} record from the database.
PATCH /v2/sandboxes/boxes/{name} Rename a sandbox claim · Update a sandbox claim #
Ask an LLM
“Can I change the display name of a sandbox claim?”
“Is a sandbox name unique within my tenant?”
Tell an agent
Rename sandbox claim {name} to {new_name}.
Update the name of sandbox {name}.
POST /v2/sandboxes/boxes/{name}/service-url Get a short-lived token for a sandbox service · Generate a service access token #
Ask an LLM
“How do I get a temporary token to access a service running in a sandbox?”
“Can I set how long a sandbox service token stays valid?”
Tell an agent
Generate a service access token for sandbox {name} on port {port}.
Create a short-lived token for sandbox {name} that expires in {expires_in_seconds} seconds.
POST /v2/sandboxes/boxes/{name}/snapshot Capture a snapshot from a sandbox · Capture a snapshot from a sandbox #
Ask an LLM
“How do I save the current state of a running sandbox as a snapshot?”
“Can I capture a sandbox from a checkpoint?”
Tell an agent
Capture a snapshot named {snapshot_name} from sandbox {name}.
Save the running state of sandbox {name} as snapshot {snapshot_name}.
POST /v2/sandboxes/boxes/{name}/start Start a stopped or failed sandbox · Start a sandbox #
Ask an LLM
“How do I start a sandbox that failed to provision?”
“Is starting a sandbox idempotent?”
Tell an agent
Start sandbox {name}.
Restart the failed sandbox {name}.
GET /v2/sandboxes/boxes/{name}/status Poll a sandbox's lightweight status · Get sandbox claim status #
Ask an LLM
“Is my sandbox ready yet?”
“What is the current status of a sandbox claim?”
Tell an agent
Get the status of sandbox {name}.
Poll sandbox {name} for provisioning progress.
POST /v2/sandboxes/boxes/{name}/stop Stop a ready sandbox · Stop a sandbox #
Ask an LLM
“How do I stop a ready sandbox without losing its filesystem?”
“Does stopping a sandbox preserve its data?”
Tell an agent
Stop sandbox {name}.
Shut down the running sandbox {name}.
GET /v2/sandboxes/snapshots List sandbox snapshots · List snapshots #
Ask an LLM
“Which snapshots have I saved for my sandboxes?”
“Can I filter snapshots by status?”
Tell an agent
List my sandbox snapshots.
List snapshots with status {status}.
POST /v2/sandboxes/snapshots Create a snapshot from a Docker image · Create a snapshot #
Ask an LLM
“How do I create a sandbox snapshot from a Docker image?”
“What do I need to build a snapshot from a Docker image?”
Tell an agent
Create snapshot {snapshot_name} from Docker image {docker_image} with {fs_capacity_bytes} bytes of disk.
Build a snapshot from {docker_image} in registry {registry_id}.
GET /v2/sandboxes/snapshots/{snapshot_id} Get a sandbox snapshot · Get a snapshot #
Ask an LLM
“What are the details of one sandbox snapshot?”
“Can I look up a snapshot by its ID?”
Tell an agent
Get sandbox snapshot {snapshot_id}.
Show the details of snapshot {snapshot_id}.
DELETE /v2/sandboxes/snapshots/{snapshot_id} Delete a sandbox snapshot · Delete a snapshot #
Ask an LLM
“How do I delete a sandbox snapshot?”
“Is storage reclaimed immediately when a snapshot is deleted?”
Tell an agent destructive · confirm first
Delete sandbox snapshot {snapshot_id}.
Remove the snapshot {snapshot_id} from storage.
GET /v2/sandboxes/usage Get sandbox resource usage and quota · Get sandbox resource usage #
Ask an LLM
“How much sandbox resource usage have I consumed?”
“What are my current sandbox quota limits?”
Tell an agent
Show my sandbox resource usage and quota limits.
Report current sandbox usage for the workspace.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/langsmith:langsmith-sandboxes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

langsmith-sandboxes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LangSmith Sandboxes API
  description: 'The LangSmith API is used to programmatically create and manage LangSmith resources.


    ## Host

    https://api.smith.langchain.com


    ## Authentication

    To authenticate with the LangSmith API, set the `X-Api-Key` header

    to a valid LangSmith API key.'
  version: 0.1.0
servers:
- url: /
tags:


# --- truncated at 32 KB (35 KB total) ---
# Full source: https://artifacts.apis.io/langsmith/openapi/langsmith-sandboxes-api-openapi.yml