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