# sessions.handoff_resume

`POST /api/public/v1/sessions/{id}/handoff/resume`

Return control only after human verification and signed worker readback.

- Capability: `session.control`
- Command (idempotent): yes — send a `command_id`; resending the same id and body returns the stored receipt
- MCP tool: `sessions_handoff_resume`

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string (uuid) | Yes |  |
| `command_id` | body | string (uuid) | Yes |  |
| `idempotency_key` | body | string | Yes | (min length 1, max length 163) |
| `epoch` | body | integer | Yes | (min 0, max 9007199254740991) |

## Response

`201` with `{ data, replayed: false, correlation_id }` the first time; `200` with `replayed: true` for a repeated `command_id`.

The field list of this reply is not published yet; read data as JSON.

## Errors

| Code | HTTP | Retryable |
|---|---|---|
| `UNAUTHENTICATED` | 401 | No |
| `FORBIDDEN` | 403 | No |
| `RATE_LIMITED` | 429 | Yes |
| `VALIDATION_FAILED` | 422 | No |
| `NOT_FOUND` | 404 | No |
| `CONFLICT` | 409 | No |
| `OUTCOME_UNKNOWN` | 202 | Yes |
| `DEPENDENCY_UNAVAILABLE` | 503 | Yes |
| `UNKNOWN` | 500 | No |

## Examples (curl)

```bash
curl -X POST "https://browlix.com/api/public/v1/sessions/<id>/handoff/resume" \
  -H "Authorization: Bearer $BROWLIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command_id":"<uuid>","idempotency_key":"<idempotency_key>","epoch":0}'
```

## Examples (TypeScript SDK)

```ts
import { Browlix } from "@browlix/sdk";

const bx = new Browlix({ apiKey: process.env.BROWLIX_API_KEY! });
const reply = await bx.call("sessions.handoff_resume", { path: { id: "<id>" }, body: {"idempotency_key":"<idempotency_key>","epoch":0} });
console.log(reply.data);
```

## Examples (Python)

```python
import os, uuid
import requests

r = requests.post(
    "https://browlix.com/api/public/v1/sessions/<id>/handoff/resume",
    headers={"Authorization": f"Bearer {os.environ['BROWLIX_API_KEY']}"},
    json={"command_id":str(uuid.uuid4()),"idempotency_key":"<idempotency_key>","epoch":0},
    timeout=60,
)
print(r.status_code, r.json())
```

## Examples (MCP)

```json
{
  "method": "tools/call",
  "params": {
    "name": "sessions_handoff_resume",
    "arguments": {
      "id": "<id>",
      "idempotency_key": "<idempotency_key>",
      "epoch": 0
    }
  }
}
```
