---
title: "close your assistant’s browser"
---

> 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.

# close your assistant’s browser

Path: CloudRaker Workspace API › My assistant

`POST /me/assistant/browser/close`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `controlGeneration` (`myAssistantBrowserclose.controlGeneration`; integer, required)
  - min 0; max 9007199254740991

## Example request

```json
{
  "controlGeneration": 9007199254740991
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/me/assistant/browser/close \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "controlGeneration": 9007199254740991
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/assistant/browser/close';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({controlGeneration: 9007199254740991})
};

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/me/assistant/browser/close"

payload = { "controlGeneration": 9007199254740991 }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

close your assistant’s browser

#### Example

```json
{
  "data": {
    "viewport": {
      "width": 0,
      "height": 0
    },
    "browserId": "string",
    "status": "starting",
    "generation": 9007199254740991,
    "controlGeneration": 9007199254740991,
    "sessionId": "string",
    "turnId": "string",
    "agentId": "string",
    "visibility": "private",
    "url": "string",
    "title": "string",
    "updatedAt": 0,
    "expiresAt": 0,
    "handoffId": "string",
    "handoffReason": "string",
    "controllerUserId": "string",
    "screenshotAvailable": true,
    "savedLogins": true,
    "allowedDomains": [
      "string"
    ],
    "error": "string"
  },
  "browserQuestionId": "string",
  "successorTurnId": "string"
}
```

- `data` (`myAssistantBrowserclose.response.200.data`; any of, required)
  - any of:
    - `object`
      - `viewport` (`myAssistantBrowserclose.response.200.data.1.viewport`; object, required)
        - `width` (`myAssistantBrowserclose.response.200.data.1.viewport.width`; number, required)
        - `height` (`myAssistantBrowserclose.response.200.data.1.viewport.height`; number, required)
      - `browserId` (`myAssistantBrowserclose.response.200.data.1.browserId`; string, required)
      - `status` (`myAssistantBrowserclose.response.200.data.1.status`; string, required)
        - one of `"starting"`, `"agent_active"`, `"handoff_requested"`, `"human_active"`, `"returning"`, `"closing"`, `"closed"`, `"expired"`, `"failed"`
      - `generation` (`myAssistantBrowserclose.response.200.data.1.generation`; integer, required)
        - min 0; max 9007199254740991
      - `controlGeneration` (`myAssistantBrowserclose.response.200.data.1.controlGeneration`; integer, required)
        - min 0; max 9007199254740991
      - `sessionId` (`myAssistantBrowserclose.response.200.data.1.sessionId`; string, required)
      - `turnId` (`myAssistantBrowserclose.response.200.data.1.turnId`; string, required)
      - `agentId` (`myAssistantBrowserclose.response.200.data.1.agentId`; string, required)
      - `visibility` (`myAssistantBrowserclose.response.200.data.1.visibility`; string, required)
        - one of `"private"`, `"shared"`
      - `url` (`myAssistantBrowserclose.response.200.data.1.url`; string | null, required)
      - `title` (`myAssistantBrowserclose.response.200.data.1.title`; string | null, required)
      - `updatedAt` (`myAssistantBrowserclose.response.200.data.1.updatedAt`; number, required)
      - `expiresAt` (`myAssistantBrowserclose.response.200.data.1.expiresAt`; number, required)
      - `handoffId` (`myAssistantBrowserclose.response.200.data.1.handoffId`; string | null, required)
      - `handoffReason` (`myAssistantBrowserclose.response.200.data.1.handoffReason`; string | null, required)
      - `controllerUserId` (`myAssistantBrowserclose.response.200.data.1.controllerUserId`; string | null, required)
      - `screenshotAvailable` (`myAssistantBrowserclose.response.200.data.1.screenshotAvailable`; boolean, required)
      - `savedLogins` (`myAssistantBrowserclose.response.200.data.1.savedLogins`; boolean, required)
      - `allowedDomains` (`myAssistantBrowserclose.response.200.data.1.allowedDomains`; array<string>, required)
      - `error` (`myAssistantBrowserclose.response.200.data.1.error`; string | null, required)
    - `null`
- `browserQuestionId` (`myAssistantBrowserclose.response.200.browserQuestionId`; string | null, required)
- `successorTurnId` (`myAssistantBrowserclose.response.200.successorTurnId`; string, optional)
  - minLength 1; maxLength 128

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`myAssistantBrowserclose.response.400.success`; boolean, required)
  - one of `false`
- `error` (`myAssistantBrowserclose.response.400.error`; array<unknown>, required)
- `data` (`myAssistantBrowserclose.response.400.data`; unknown, required)

### 403

An active personal account is required.

### 404

No authorized browser.

#### Example

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

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


Source: https://docs.cloudraker.com/workspace/api/my-assistant/browserclose/index.md
