Javascript
import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', }); const response = await client.browsers.process.status('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { id: 'id' }); console.log(response.cpu_pct);
{ "state": "running", "exit_code": 123, "cpu_pct": 123, "mem_bytes": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Browser session ID
Status
Current status of a process.