Skip to main content
POST
/
v1
/
sandboxes
/
{id}
/
desktop
/
screenshot
/
region
Take a screenshot of a region
import requests

url = "https://api.13-215-85-171.sslip.io/v1/sandboxes/{id}/desktop/screenshot/region"

payload = {
    "x": 123,
    "y": 123,
    "width": 123,
    "height": 123
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
"<string>"

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Sandbox ID (e.g. sb_a1b2c3d4)

Body

application/json
x
integer<uint32>
required
y
integer<uint32>
required
width
integer<uint32>
required
height
integer<uint32>
required

Response

200 - image/png

PNG image data

The response is of type file.