cURL
curl --request GET \ --url https://api.onkernel.com/browsers/{id}/fs/watch/{watch_id}/events \ --header 'Authorization: Bearer <token>'
{ "type": "CREATE", "path": "<string>", "name": "<string>", "is_dir": true }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Browser session ID
SSE stream of filesystem events
Filesystem change event.
Event type.
CREATE
WRITE
DELETE
RENAME
Absolute path of the file or directory.
Base name of the file or directory affected.
Whether the affected path is a directory.