Take a screenshot

One still image of the newest frame, base64 in JSON, as every model API takes an image.

GET/v1/sandboxes/{sandbox_id}/screen/screenshot

Not available yet Seeing and acting on a sandbox's screen is not offered yet. Commands, files and ports work today.

One still image of the newest frame, base64 in JSON, as every model API takes an image. PNG by default, JPEG with format=jpeg (a busy 1080p PNG is near 2 MB). A region (x, y, width, height, all four or none) must lie inside the screen. With unless_unchanged_since set to a frame_seq this screen handed out, an unchanged screen (inside the region) answers unchanged: true with no image, so a model that polls skips a screen it has seen; a number from before the screen's worker restarted always gets the image. An image above 4 MiB less 64 KiB is payload_too_large: ask for JPEG or a region. A screen that cannot be shown answers by its reason (Screen.unavailable): not_supported with no desktop or a TEE screen switched off, not_ready while the sandbox is not running, unavailable while the worker restarts. Pixels are customer content: never logged.

A key with the screen:read scope.

Request

curl "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/screen/screenshot" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
sandbox_idpathstringYes
formatquery"png" | "jpeg"No
qualityqueryintegerNoJPEG only, 1 to 100. 80 by default.
xqueryintegerNoA pixel of the screen, from the top left.
yqueryintegerNoA pixel of the screen, from the top left.
widthqueryintegerNo
heightqueryintegerNo
unless_unchanged_sincequeryintegerNoA frame_seq this screen answered before.

Answer

200. The screenshot.

200
{
  "format": "png",
  "width": 1,
  "height": 1,
  "frame_seq": 0,
  "captured_at": "2026-11-23T12:00:00.000Z",
  "unchanged": false,
  "image": null
}
FieldTypeAlwaysWhat it is
format"png" | "jpeg"YesDefault "png".
widthintegerYesAt least 1.
heightintegerYesAt least 1.
frame_seqintegerYesAt least 0.
captured_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
unchangedbooleanYesTrue when unless_unchanged_since matched; image is then null.
imagestring | nullYesThe image, base64. Customer content, never logged.

Errors

The refusals this call is known for: invalid, not_found, not_ready, payload_too_large, not_supported, unavailable, in_other_cell, rate_limited. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptsandbox.screen.screenshot({ … })
Pythonsandbox.screen.screenshot(…)