---
title: "GET /playwrightworkspaces/{workspaceId}/browser-sessions/{sessionId}"
method: GET
path: "/playwrightworkspaces/{workspaceId}/browser-sessions/{sessionId}"
---

# GET /playwrightworkspaces/{workspaceId}/browser-sessions/{sessionId}

`GET /playwrightworkspaces/{workspaceId}/browser-sessions/{sessionId}`

Get a browser session for the specified session and workspace ID. Requires Bearer JWT access token provided by Entra ID.

## Path parameters

- `workspaceId` string, required
- `sessionId` string, required

## Query parameters

- `api-version` string, required

## Headers

- `x-ms-client-request-id` string, uuid
- `x-ms-useragent` string

## Response `200`

The request has succeeded.

- BrowserSession — Model of a browser session used for tracking purposes.
  - `id` string, required — The browser session ID in GUID format.
  - `displayName` string, required — The browser session display name.
  - `creatorId` string, required — The browser session creator's ID.
  - `startTime` string, date-time — The browser session start time in UTC.
  - `endTime` string, date-time — The browser session end time in UTC.
  - `durationInMilliseconds` integer — The browser session duration in milliseconds.
  - `status` 'Created' | 'Active' | 'Completed' | 'Failed', required — The browser session status.
  - `source` BrowserSessionSource, required — The browser session source details.
    - `id` string, required — The browser session source ID, would be same as runId for test-runs.
    - `type` 'PlaywrightWorkspacesTestRun' | 'BrowserAutomationTool' | 'Others', required — The browser session source type.
  - `browserType` 'Chromium' | 'Firefox' | 'Webkit', required — The browser type to configure for remote script execution.
  - `operatingSystem` 'Linux' | 'Windows', required — The operating system to configure for remote script execution.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/loadtestservice-playwright.md) · [All operations](https://skmtc.net/azure/apis/loadtestservice-playwright/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/loadtestservice-playwright/versions/7e7fa8e8788b/schema)
