Create a new browser session from within an action.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Parameters for creating a browser session.
action invocation ID
"rr33xuugxj9h0bkf1rdt2bet"
DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles instead.
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. Activity includes CDP connections and live view connections. Defaults to 60 seconds. Minimum allowed is 10 seconds. Maximum allowed is 259200 (72 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 <= 259200Profile 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.
List of browser extensions to load into the session. Provide each by id or name.
20Extension selection for the browser session. Provide either id or name of an extension uploaded to Kernel.
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 (1920x1080@25). 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, 1200x800@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
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..."
DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles instead.
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 (1920x1080@25). 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, 1200x800@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
When the browser session was soft-deleted. Only present for deleted sessions.