Take over the screen's input (a person)

A signed-in person takes the screen's input for a while: agents' actions are `conflict` until they hand it back, and their own input travels on a `takeover` stream.

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

Not available yet The API does not serve a screen's tree, live stream, takeovers, watch links or recordings yet.

A signed-in person takes the screen's input for a while: agents' actions are conflict until they hand it back, and their own input travels on a takeover stream. acknowledged says the person accepted what a takeover shows and keeps: whoever watches sees what is typed, and with the recording's typing mask off it lands in the recording. Typing during a takeover is masked out of recordings by default. The takeover ends by itself after 15 minutes without input. Someone else's takeover in force is conflict; the person's own answers it again. An API key is person_required.

For people only: a signed-in person's token makes this call. An API key is refused with person_required. The person's role needs the screen:write scope.

Request

curl -X POST "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/screen/takeover" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"acknowledged":true}'

Parameters

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

Body

FieldTypeRequiredWhat it is
acknowledgedtrueYesThe person accepted that watchers see what they type, and that with the recording's typing mask off it lands in the recording.

Answer

201. The takeover.

201
{
  "id": "tko_3ahrz6dmv29gqy5ckt18fpx4b",
  "sandbox": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
  "held_by": "example",
  "mine": false,
  "started_at": "2026-11-23T12:00:00.000Z",
  "expires_at": "2026-11-23T12:00:00.000Z"
}
FieldTypeAlwaysWhat it is
idstringYes
sandboxstringYes
held_bystringYesAn identity account id, the sub of the person's Mapier identity token.
minebooleanYesWhether the person reading the answer holds it.
started_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
expires_atstringYesWhen it ends by itself without more input.

Errors

The refusals this call is known for: invalid, person_required, not_found, conflict, not_ready, not_supported, 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.takeover()
Pythonsandbox.screen.takeover()