Browsers
Create a browser session
Changed onCreate a new browser session from within an action.
post/browsers
Request
- Base URLhttps://api.onkernel.com
- URLhttps://api.onkernel.com/browsers
- AuthHTTP bearer
Request body
Example request
{
"fingerprint": {
"os": "macos"
},
"invocation_id": "rr33xuugxj9h0bkf1rdt2bet",
"kiosk_mode": true,
"location": {
"locale": "en-US",
"timezone": "America/Los_Angeles"
},
"memory": "8GiB",
"name": "checkout-flow-1",
"network": {
"allowed_hosts": [
"example.com",
"*.example.com"
],
"private_hosts": [
"*.example.ts.net",
"100.64.0.0/10"
]
},
"start_url": "https://example.com",
"stealth": true,
"tags": {
"env": "staging",
"team": "backend"
},
"video_memory": "2GiB",
"viewport": {
"height": 800,
"refresh_rate": 60,
"width": 1280
}
}Response
Successful response
Example response
{
"base_url": "https://proxy.yul-upbeat-herschel.onkernel.com:8443/browser/kernel",
"browser_live_view_url": "https://proxy.yul-upbeat-herschel.onkernel.com:8443/browser/live?jwt=eyJ0eXAi...",
"cdp_ws_url": "wss://proxy.yul-upbeat-herschel.onkernel.com:8443/browser/cdp?jwt=eyJ0eXAi...",
"location": {
"locale": "en-US",
"timezone": "America/Los_Angeles"
},
"memory": "8GiB",
"name": "checkout-flow-1",
"network": {
"allowed_hosts": [
"example.com",
"*.example.com"
],
"private_hosts": [
"*.example.ts.net",
"100.64.0.0/10"
]
},
"session_id": "htzv5orfit78e1m2biiifpbv",
"start_url": "https://example.com",
"tags": {
"env": "staging",
"team": "backend"
},
"video_memory": "2GiB",
"viewport": {
"height": 800,
"refresh_rate": 60,
"width": 1280
},
"webdriver_ws_url": "wss://proxy.yul-upbeat-herschel.onkernel.com:8443/browser/webdriver/session?jwt=eyJ0eXAi..."
}Changes
- info
added the optional property
to the response with the status
- info
- info
added the new optional request property
- info