Start recording the screen
Records the screen into object storage under the organization's key, in encrypted segments of 10 seconds, so deleting that key deletes the recording.
Not available yet The API does not serve a screen's tree, live stream, takeovers, watch links or recordings yet.
Records the screen into object storage under the organization's key, in encrypted segments of 10 seconds, so deleting that key deletes the recording. A gap (the worker restarted, the stream was lost) is marked, never hidden. Typing during a takeover is left out by default (mask_typing), and so is whatever an actions call with mask_in_recording types. Starting while a recording is running answers that recording. A TEE sandbox records only once a person switched its screen on.
A key with the screen:write scope.
Request
curl -X POST "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/screen/recordings" \
-H "Authorization: Bearer $POD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mask_typing":true}'Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sandbox_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
mask_typing | boolean | No | Leave typing during a takeover out of the recording. Default true. |
Answer
201. The recording, started.
{
"id": "rec_3ahrz6dmv29gqy5ckt18fpx4b",
"sandbox": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
"state": "recording",
"mask_typing": false,
"started_at": "2026-11-23T12:00:00.000Z",
"stopped_at": null,
"segments": 0,
"gaps": 0,
"masked_spans": 0
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
sandbox | string | Yes | |
state | "recording" | "stopped" | Yes | |
mask_typing | boolean | Yes | |
started_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
stopped_at | string | null | Yes | |
segments | integer | Yes | Segments of 10 s written so far. At least 0. |
gaps | integer | Yes | Spans lost and marked: a restarted worker, a lost stream. At least 0. |
masked_spans | integer | Yes | Spans left out while text was typed under a mask. At least 0. |
Errors
The refusals this call is known for: invalid, not_found, not_ready, not_supported, rate_limited, in_other_cell. 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.startRecording() |
| Python | sandbox.screen.start_recording() |