Take a screenshot
One still image of the newest frame, base64 in JSON, as every model API takes an image.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sandbox_id | path | string | Yes | |
format | query | "png" | "jpeg" | No | |
quality | query | integer | No | JPEG only, 1 to 100. 80 by default. |
x | query | integer | No | A pixel of the screen, from the top left. |
y | query | integer | No | A pixel of the screen, from the top left. |
width | query | integer | No | |
height | query | integer | No | |
unless_unchanged_since | query | integer | No | A frame_seq this screen answered before. |
Answer
200. The screenshot.
{
"format": "png",
"width": 1,
"height": 1,
"frame_seq": 0,
"captured_at": "2026-11-23T12:00:00.000Z",
"unchanged": false,
"image": null
}| Field | Type | Always | What it is |
|---|---|---|---|
format | "png" | "jpeg" | Yes | Default "png". |
width | integer | Yes | At least 1. |
height | integer | Yes | At least 1. |
frame_seq | integer | Yes | At least 0. |
captured_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
unchanged | boolean | Yes | True when unless_unchanged_since matched; image is then null. |
image | string | null | Yes | The 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
| Client | Call |
|---|---|
| TypeScript | sandbox.screen.screenshot({ … }) |
| Python | sandbox.screen.screenshot(…) |