Javascript
import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', }); const response = await client.browsers.fs.watch.start('id', { path: 'path' }); console.log(response.watch_id);
{ "watch_id": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Browser session ID
Watch started successfully
The response is of type object.
object