Skip to main content
POST
/
browsers
/
{id}
/
computer
/
screenshot
Capture a screenshot of the browser instance
curl --request POST \
  --url https://api.onkernel.com/browsers/{id}/computer/screenshot \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "region": {
    "x": 123,
    "y": 123,
    "width": 123,
    "height": 123
  }
}
'
"<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

Body

application/json
region
object

Response

Screenshot image

The response is of type file.