---
title: "Get a browser (beta)"
method: GET
path: "/api/v2/sandboxes/browsers/{name}"
tags: ["sandboxes"]
---

# Get a browser (beta)

`GET /api/v2/sandboxes/browsers/{name}`

## Request

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

Beta: get a browser and the windows attached to it.

## Path parameters

- `name` string, required

## Response `200`

OK

- SandboxesBrowserResponse
  - `attachments` SandboxesBrowserAttachment[]: Attachments are listed only while the browser is running.
    - `act_url` string
    - `api_cdp_url` string: APICDPURL is the same Chrome DevTools endpoint through the LangSmith API, for clients outside any sandbox. It takes any API credential: headers as for any API call (X-Api-Key, or Authorization: Bearer with an OAuth access token, plus X-Tenant-Id where needed), or, for clients that take only a URL, api_key, token and tenant_id query parameters.
    - `cdp_url` string: CDPURL is the Chrome DevTools endpoint the attached sandbox connects to, for example with Playwright's connect_over_cdp. It works only from inside that sandbox.
    - `clients` string[]: Clients are the sandboxes currently connected to this window, with "api" for each client connected through api_cdp_url. An unrestricted window's connections are not listed.
    - `controller` 'agent' | 'user': Controller is "agent" while the attached sandbox drives the window and "user" while a person has taken it over.
    - `created_at` string
    - `height` integer
    - `id` string
    - `links_expire_at` string, date-time
    - `localhost_alias` string: LocalhostAlias is the sandbox's localhost as the browser sees it: open http://<localhost_alias>:<port> in a window to reach a server listening on that port in the sandbox, whether bound to localhost or to all interfaces (any port but 80 and 443). While this is the only sandbox sharing its localhost, http://localhost:<port> works too. Pages on other sites can navigate to a plain-HTTP server there but cannot fetch from it. Set only for windows attached with share_localhost.
    - `name` string
    - `reason` string: Reason is why the agent asked a person to take over, when it did.
    - `sandbox` string: Sandbox is the attached sandbox; empty for a window a person opened.
    - `tabs` SandboxesBrowserTab[]
      - `id` string
      - `title` string
      - `url` string
    - `unrestricted` boolean: Unrestricted windows give their sandbox the whole browser over CDP, with nothing filtered: every window and tab, every site's cookies, and commands that close or crash the browser. Taking over such a window does not pause its sandbox, and the LSBrowserControl domain is not available.
    - `view_url` string: ViewURL and ActURL open the window on the sandbox service domain with no LangSmith login, for an agent to send to a person: ViewURL to watch it, ActURL also to use it while its controller is "user". Anyone holding a link can open the window until LinksExpireAt. Each response mints new ones; they are returned only to those who may use the browser.
    - `width` integer: Width and Height are the window's page size in CSS pixels, when it was given one; a window without one keeps Chrome's default of 1280x800.
  - `hidpi` boolean: HiDPI reports whether pages render at twice the resolution. It is reported only while the browser is running.
  - `id` string
  - `name` string
  - `status` string

## Other responses

- `404`: Browser not found
- `501`: The browser beta is not enabled

## Changes

- **2026-10-18** `0593afc85ebc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/sandboxes/browsers/:name/get.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)
