Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
List of browsers
The response is of type object[].
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: 'My API Key',
});
const browsers = await client.browsers.list();
console.log(browsers);[
{
"created_at": "2023-11-07T05:31:56Z",
"cdp_ws_url": "wss://api.onkernel.com/browser/cdp?jwt=eyJ0eXAi...",
"browser_live_view_url": "https://api.onkernel.com/browser/remote?jwt=eyJ0eXAi...",
"headless": false,
"stealth": false,
"session_id": "htzv5orfit78e1m2biiifpbv",
"persistence": {
"id": "my-awesome-browser-for-user-1234"
},
"timeout_seconds": 123,
"profile": {
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
}
}
]List active browser sessions
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: 'My API Key',
});
const browsers = await client.browsers.list();
console.log(browsers);[
{
"created_at": "2023-11-07T05:31:56Z",
"cdp_ws_url": "wss://api.onkernel.com/browser/cdp?jwt=eyJ0eXAi...",
"browser_live_view_url": "https://api.onkernel.com/browser/remote?jwt=eyJ0eXAi...",
"headless": false,
"stealth": false,
"session_id": "htzv5orfit78e1m2biiifpbv",
"persistence": {
"id": "my-awesome-browser-for-user-1234"
},
"timeout_seconds": 123,
"profile": {
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List of browsers
The response is of type object[].