Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Parameters for creating a browser session. Specify at most one of "persistence" or "profile". These options are mutually exclusive; if both are provided the request is invalid.
action invocation ID
"rr33xuugxj9h0bkf1rdt2bet"
Optional persistence configuration for the browser session.
If true, launches the browser in stealth mode to reduce detection by anti-bot mechanisms.
true
If true, launches the browser using a headless image (no VNC/GUI). Defaults to false.
false
The number of seconds of inactivity before the browser session is terminated. Only applicable to non-persistent browsers. Activity includes CDP connections and live view connections. Defaults to 60 seconds. Minimum allowed is 10 seconds. Maximum allowed is 86400 (24 hours). We check for inactivity every 5 seconds, so the actual timeout behavior you will see is +/- 5 seconds around the specified value.
10 <= x <= 86400
Profile selection for the browser session. Provide either id or name. If specified, the matching profile will be loaded into the browser session. Profiles must be created beforehand.
- Option 1
- Option 2
List of browser extensions to load into the session. Provide each by id or name.
20
- Option 1
- Option 2
Optional proxy to associate to the browser session. Must reference a proxy belonging to the caller's org.
Initial browser window size in pixels with optional refresh rate. If omitted, image defaults apply (commonly 1024x768@60). Only specific viewport configurations are supported. The server will reject unsupported combinations. Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, 1024x768@60 If refresh_rate is not provided, it will be automatically determined from the width and height if they match a supported configuration exactly. Note: Higher resolutions may affect the responsiveness of live view browser
If true, launches the browser in kiosk mode to hide address bar and tabs in live view.
true
Response
Successful response
When the browser session was created.
Websocket URL for Chrome DevTools Protocol connections to the browser session
"wss://api.onkernel.com/browser/cdp?jwt=eyJ0eXAi..."
Whether the browser session is running in headless mode.
false
Whether the browser session is running in stealth mode.
false
Unique identifier for the browser session
"htzv5orfit78e1m2biiifpbv"
The number of seconds of inactivity before the browser session is terminated.
Remote URL for live viewing the browser session. Only available for non-headless browsers.
"https://api.onkernel.com/browser/remote?jwt=eyJ0eXAi..."
Optional persistence configuration for the browser session.
Browser profile metadata.
ID of the proxy associated with this browser session, if any.
Initial browser window size in pixels with optional refresh rate. If omitted, image defaults apply (commonly 1024x768@60). Only specific viewport configurations are supported. The server will reject unsupported combinations. Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, 1024x768@60 If refresh_rate is not provided, it will be automatically determined from the width and height if they match a supported configuration exactly. Note: Higher resolutions may affect the responsiveness of live view browser
Whether the browser session is running in kiosk mode.
false