---
title: "Start (or fetch) the browser session of a user-triggered playbook action"
---

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

# Start (or fetch) the browser session of a user-triggered playbook action

Path: CloudRaker Workspace API › Playbooks

`POST /spaces/{spaceId}/playbook-runs/{runId}/actions/{installedActionId}/start-browser`

Starts the browser session for a user-triggered form-filling playbook action and returns `{ data: { sessionId, pairUrl, controlUrl, status, ... } }`. The caller opens the pairUrl in a compatible browser with the CloudRaker extension installed; once paired, the playbook agent drives that tab to fill the form. Idempotent: while a session is open the same session (and pairUrl) is returned. Authorization: `space:contribute` (org admins bypass); missing → 403. Returns 409 when dependencies are unmet or another session open, 422 not a user-triggered action, 502 browser session unavailable.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`startPlaybookRunBrowserAction.path.spaceId`; string, required)
- `runId` (`startPlaybookRunBrowserAction.path.runId`; string, required)
- `installedActionId` (`startPlaybookRunBrowserAction.path.installedActionId`; string, required)

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/spaces/<spaceId>/playbook-runs/<runId>/actions/<installedActionId>/start-browser' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/playbook-runs/<runId>/actions/<installedActionId>/start-browser';
const options = {method: 'POST', 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/spaces/<spaceId>/playbook-runs/<runId>/actions/<installedActionId>/start-browser"

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

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

print(response.text)
```

## Responses

### 200

The browser session, including its pairing URL.

#### Example

```json
{
  "data": {
    "sessionId": "string",
    "installedActionId": "string",
    "status": "pairing",
    "pairUrl": "string",
    "controlUrl": "string",
    "startUrl": "string",
    "createdAt": "2019-08-24T14:15:22Z"
  }
}
```

- `data` (`startPlaybookRunBrowserAction.response.200.data`; object, required)
  - `sessionId` (`startPlaybookRunBrowserAction.response.200.data.sessionId`; string, required)
  - `installedActionId` (`startPlaybookRunBrowserAction.response.200.data.installedActionId`; string, required)
  - `status` (`startPlaybookRunBrowserAction.response.200.data.status`; string, required)
    - one of `"pairing"`, `"live"`, `"ended"`, `"expired"`
  - `pairUrl` (`startPlaybookRunBrowserAction.response.200.data.pairUrl`; string, required) — Open in a browser carrying the extension to pair the session.
  - `controlUrl` (`startPlaybookRunBrowserAction.response.200.data.controlUrl`; string, required)
  - `startUrl` (`startPlaybookRunBrowserAction.response.200.data.startUrl`; string | null, required)
  - `createdAt` (`startPlaybookRunBrowserAction.response.200.data.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`


Source: https://docs.cloudraker.com/workspace/api/playbooks/start-playbook-run-browser-action/index.md
