Skip to main content
GET
/
browsers
/
{id}
/
fs
/
read_file
Read file contents
curl --request GET \
  --url https://api.onkernel.com/browsers/{id}/fs/read_file \
  --header 'Authorization: Bearer <token>'
"<string>"

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

Query Parameters

path
string
required

Absolute file path to read.

Pattern: ^/.*

Response

File read successfully

The response is of type file.