Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
Set request defaults
The API uses/v1/deepagents:
X-Api-Key header:
X-Api-Key header returns 401 with {"error": "Unauthorized"}. A key that is invalid or lacks workspace access returns 403 with {"error": "Forbidden"}. These auth responses use a flat {"error": "..."} body, unlike the structured error body returned by other 4xx responses. A valid key whose role lacks a required permission also returns 403, but with a plain-text body naming the missing permission (for example, missing permission mcp-servers:create), which the SDK exposes on error.body.
Understand resource groups
Managed Deep Agents are not LangSmith Deployments. Creating a Managed Deep Agent creates a Managed Deep Agent resource, a separate LangSmith tracing project, and a Context Hub agent repo for the managed file tree.
Configure sandboxes
Create-agent and update-agent payloads can include abackend object. Use state when the agent does not need sandbox-specific backend behavior:
sandbox when the agent needs a LangSmith sandbox for code execution, filesystem work, or long-running tasks. Sandbox backend settings live under backend.sandbox_config and are valid only when backend.type is sandbox:
sandbox object accepts:
For backend guidance, see Deploy an agent. For standalone sandbox concepts, see the LangSmith sandboxes overview.
Use common REST commands
Agents
See Deploy an agent for the create and update workflow. For deletion behavior, see Limits and notes.Threads
See Run an agent for creating threads and managing the durable state they hold across runs.Runs
See Run an agent for starting runs on a thread and streaming their output.MCP servers
See Connect tools for registering MCP servers and storing the credentials your agent tools use.MCP tools
See Connect tools for listing the tools a registered server exposes and buildingtools.json entries.
Auth sessions
See Connect tools for running the OAuth flow that authorizes MCP servers.Paginate the agents list
GET /v1/deepagents/agents is cursor-paginated. Pass page_size (defaults to 20, maximum 100) and the opaque cursor returned by a previous request. The response wraps results in an items array alongside a next_cursor field that is null on the last page:
name to filter by name substring, sort_by (created_at, updated_at, or name, defaults to updated_at), and sort_order (asc or desc, defaults to desc).
Understand API stability
Routes are versioned at/v1/, but the surface is in private beta and may change in backwards-incompatible ways before general availability. See API stability for breaking-change communication.
The API does not mirror every LangSmith Deployment endpoint. Endpoint groups such as integrations, triggers, skills, sandboxes, auth providers, and auth tokens are not mirrored.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

