Hand the screen's input back

Ends the takeover: its streams get `takeover` with `held: false` and stop taking input, and agents' actions are accepted again.

DELETE/v1/sandboxes/{sandbox_id}/screen/takeover/{takeover_id}

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

Ends the takeover: its streams get takeover with held: false and stop taking input, and agents' actions are accepted again. The person who holds it, or a person whose role holds screen:write in the project, may end it. One that has already ended is not_found.

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 DELETE "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/screen/takeover/tko_3ahrz6dmv29gqy5ckt18fpx4b" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN"

Parameters

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

Answer

204. Handed back.

Errors

The refusals this call is known for: person_required, not_found, 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.handBack(takeoverId)
Pythonsandbox.screen.hand_back(takeover_id)