---
title: "Hand control back to the agent (viewer token, control mode)"
method: POST
path: "/api/v1/computers/{computer_id}/takeover/complete"
tags: ["computers"]
---

# Hand control back to the agent (viewer token, control mode)

`POST /api/v1/computers/{computer_id}/takeover/complete`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/v1/computers/{computer_id}/takeover/complete`
- Auth: HTTP bearer

## Path parameters

- `computer_id` string, required

## Request body

- TakeoverCompleteRequest
  - `success` boolean
  - `note` string

## Response `200`

Successful Response

- TakeoverCompleteOut
  - `takeoverSeq` integer, nullable
  - `screenshot` ActionResult: A desktopd action result with camelCase names; extra detail keys pass through.
    - `action` string, nullable
    - `ok` boolean, nullable
    - `isError` boolean, nullable
    - `error` string, nullable
    - `frameId` integer, nullable
    - `imageB64` string, nullable
    - `width` integer, nullable
    - `height` integer, nullable
    - `mime` string, nullable
    - `scale` number, nullable
    - `coordinate` integer[], nullable
    - `blocked` boolean, nullable
    - `mode` string, nullable
    - `reason` string, nullable
    - `hint` string, nullable
    - `note` string, nullable

## Other responses

- `402`: Plan or quota refusal
- `409`: A person is in control of the computer
- `422`: Validation Error
- `503`: Computers disabled or no capacity

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
