import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.invocations.listBrowsers('id');
console.log(response.browsers);
Returns all active browser sessions created within the specified invocation.
GET
/
invocations
/
{id}
/
browsers
JavaScript
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.invocations.listBrowsers('id');
console.log(response.browsers);