---
title: "Get a live browser frame"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a live browser frame

Path: CloudRaker Workspace API › Workspace Sessions

`GET /workspace/sessions/{sessionId}/turns/{turnId}/browser/screenshot`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `sessionId` (`getWorkspaceBrowserScreenshot.path.sessionId`; string, required)
- `turnId` (`getWorkspaceBrowserScreenshot.path.turnId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/workspace/sessions/<sessionId>/turns/<turnId>/browser/screenshot' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/workspace/sessions/<sessionId>/turns/<turnId>/browser/screenshot';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/workspace/sessions/<sessionId>/turns/<turnId>/browser/screenshot"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Ephemeral JPEG frame.

### 404

No authorized browser.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`getWorkspaceBrowserScreenshot.response.404.error`; string, required) — The sentence a human reads.
- `error_code` (`getWorkspaceBrowserScreenshot.response.404.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`getWorkspaceBrowserScreenshot.response.404.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`getWorkspaceBrowserScreenshot.response.404.issues.path`; string, required)
  - `code` (`getWorkspaceBrowserScreenshot.response.404.issues.code`; string, required)
  - `message` (`getWorkspaceBrowserScreenshot.response.404.issues.message`; string, required)

### 409

Browser control changed.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`getWorkspaceBrowserScreenshot.response.409.error`; string, required) — The sentence a human reads.
- `error_code` (`getWorkspaceBrowserScreenshot.response.409.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`getWorkspaceBrowserScreenshot.response.409.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`getWorkspaceBrowserScreenshot.response.409.issues.path`; string, required)
  - `code` (`getWorkspaceBrowserScreenshot.response.409.issues.code`; string, required)
  - `message` (`getWorkspaceBrowserScreenshot.response.409.issues.message`; string, required)

### 503

Browser temporarily unavailable.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`getWorkspaceBrowserScreenshot.response.503.error`; string, required) — The sentence a human reads.
- `error_code` (`getWorkspaceBrowserScreenshot.response.503.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`getWorkspaceBrowserScreenshot.response.503.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`getWorkspaceBrowserScreenshot.response.503.issues.path`; string, required)
  - `code` (`getWorkspaceBrowserScreenshot.response.503.issues.code`; string, required)
  - `message` (`getWorkspaceBrowserScreenshot.response.503.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/workspace-sessions/get-workspace-browser-screenshot/index.md
