Region screenshot
Capture a specific region of the screen.
POST
/api/screenshot/regionCapture a specific region of the screen.
Authorization
BearerAuth AuthorizationBearer <token>
API key passed as a Bearer token.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
x*integer
Left edge of the capture region.
Range
0 <= valuey*integer
Top edge of the capture region.
Range
0 <= valuewidth*integer
Region width in pixels.
Range
1 <= valueheight*integer
Region height in pixels.
Range
1 <= valueformat?string
Image format.
Value in
"png" | "jpg" | "jpeg"quality?integer
JPEG quality.
Range
1 <= value <= 100Response Body
application/json
curl -X POST "https://<sandbox_id>.sandbox.leap0.dev/api/screenshot/region" \ -H "Content-Type: application/json" \ -d '{ "x": 0, "y": 0, "width": 1, "height": 1 }'"string"{ "message": "Invalid request", "errors": [ { "field": "string", "error": "string" } ]}
