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.
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
| 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 |
|---|---|---|---|
acknowledged | true | Yes | The 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.
{
"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"
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
sandbox | string | Yes | |
held_by | string | Yes | An identity account id, the sub of the person's Mapier identity token. |
mine | boolean | Yes | Whether the person reading the answer holds it. |
started_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
expires_at | string | Yes | When 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
| Client | Call |
|---|---|
| TypeScript | sandbox.screen.takeover() |
| Python | sandbox.screen.takeover() |