Launch a new cloud browser session in a sandboxed environment.
| Header | Value |
|---|---|
Authorization | Bearer <API_KEY> |
Content-Type | application/json |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ttl | number | No | 600 | Total session lifetime in seconds (30-3600) |
activityTtl | number | No | 300 | Seconds of inactivity before session is destroyed (10-3600) |
profile | object | No | — | Enable persistent storage across sessions. See below. |
profile.name | string | Yes* | — | Name for the profile (1-128 chars). Sessions with the same name share storage. |
profile.saveChanges | boolean | No | true | When true, browser state is saved back to the profile on close. Set to false to load existing data without writing. Only one saver is allowed at a time. |
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the session was created |
id | string | Unique session identifier |
cdpUrl | string | WebSocket URL for CDP connections |
liveViewUrl | string | URL to watch the session in real time |
interactiveLiveViewUrl | string | URL to interact with the session in real time (click, type, scroll) |
expiresAt | string | When the session will expire based on TTL |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Total time-to-live in seconds for the browser session
30 <= x <= 3600Time in seconds before the session is destroyed due to inactivity
10 <= x <= 3600Whether to stream a live view of the browser
Enable persistent storage across browser sessions. Data saved in one session can be loaded in a later session using the same name.
Browser session created successfully
The unique session identifier
WebSocket URL for Chrome DevTools Protocol access
URL to view the browser session in real time
URL to interact with the browser session in real time (click, type, scroll)
When the session will expire based on TTL