GET
/
browsers
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});

const browsers = await client.browsers.list();

console.log(browsers);
[
  {
    "cdp_ws_url": "wss://api.onkernel.com/browser/cdp?jwt=eyJ0eXAi...",
    "browser_live_view_url": "https://api.onkernel.com/browser/remote?jwt=eyJ0eXAi...",
    "session_id": "htzv5orfit78e1m2biiifpbv",
    "persistence": {
      "id": "my-awesome-browser-for-user-1234"
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json

List of browsers

The response is of type object[].