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.

POST/v1/sandboxes/{sandbox_id}/screen/recordings

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

NameInTypeRequiredWhat it is
sandbox_idpathstringYes
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
mask_typingbooleanNoLeave typing during a takeover out of the recording. Default true.

Answer

201. The recording, started.

201
{
  "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
}
FieldTypeAlwaysWhat it is
idstringYes
sandboxstringYes
state"recording" | "stopped"Yes
mask_typingbooleanYes
started_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
stopped_atstring | nullYes
segmentsintegerYesSegments of 10 s written so far. At least 0.
gapsintegerYesSpans lost and marked: a restarted worker, a lost stream. At least 0.
masked_spansintegerYesSpans 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

ClientCall
TypeScriptsandbox.screen.startRecording()
Pythonsandbox.screen.start_recording()