Skip to main content
POST
/
browsers
/
{id}
/
computer
/
cursor
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const response = await client.browsers.computer.setCursorVisibility('id', { hidden: true });

console.log(response.ok);
{
  "ok": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Browser session ID

Body

application/json
hidden
boolean
required

Whether the cursor should be hidden or visible

Response

Cursor visibility set

Generic OK response.

ok
boolean
default:true
required

Indicates success.