Stop a recording
Writes the last segment and marks the recording stopped; it answers once the store holds it stopped.
POST/v1/sandboxes/{sandbox_id}/screen/recordings/{recording_id}/stop
Not available yet The API does not serve a screen's tree, live stream, takeovers, watch links or recordings yet.
Writes the last segment and marks the recording stopped; it answers once the store holds it stopped. Stopping one already stopped answers it again.
A key with the screen:write scope.
Request
curl -X POST "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/screen/recordings/rec_3ahrz6dmv29gqy5ckt18fpx4b/stop" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sandbox_id | path | string | Yes | |
recording_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Answer
200. The recording, stopped.
{
"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: not_found, unavailable, 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.stopRecording(recordingId) |
| Python | sandbox.screen.stop_recording(recording_id) |