# Pause high-risk autopilot runs for human approval

URL: https://docs.hanzo.ai/docs/guides/autopilot/human-approval-gates

> Hold high-consequence autopilot actions for explicit human review via POST /v1/auto/automations/{id}/runs/{run}/review and resume durably.

**Autonomy scales fastest when humans stay in the loop on irreversible actions.** Hanzo's durable review state lets an automation pause indefinitely without losing context until an authorized reviewer approves or rejects.

## Architecture & contract

When `permissions: "ask"` is set (or Kai confidence falls below threshold), the run checkpoints its state and emits a reviewable artifact. Submitting a review resumes or halts execution with full principal attribution.

**Primary endpoint:** `POST /v1/auto/automations/{id}/runs/{run}/review` · \*_Status:_\* `shipped` · \*_Level:_\* `practitioner`

## Run it across all four surfaces

**CLI**

```bash
hanzo auto automations runs "$AUTO_ID"
hanzo auto automations runs review "$AUTO_ID" "$RUN_ID" --data '{"approved":true,"note":"Verified invoice amount"}'
```

**SDK**

**TypeScript**

```ts
import { Configuration, AutoApi } from 'hanzoai';

const auto = new AutoApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const runs = await auto.getAutoAutomationsByIdRuns(process.env.AUTO_ID!);
console.log('Pending runs:', runs.data);
await auto.postAutoAutomationsByIdRunsByRunReview(process.env.AUTO_ID!, process.env.RUN_ID!, {
  approved: true,
  note: 'Verified invoice amount',
});
```

**Python**

```python
import os
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AutoApi

api = AutoApi(ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"])))
print(api.get_auto_automations_by_id_runs(os.environ["AUTO_ID"]))
api.post_auto_automations_by_id_runs_by_run_review(
    os.environ["AUTO_ID"], os.environ["RUN_ID"], {"approved": True, "note": "Verified invoice amount"}
)
```

**HTTP**

```bash
curl -s "https://api.hanzo.ai/v1/auto/automations/${AUTO_ID}/runs" \
  -H "Authorization: Bearer $HANZO_API_KEY" | jq '.'

curl -s -X POST "https://api.hanzo.ai/v1/auto/automations/${AUTO_ID}/runs/${RUN_ID}/review" \
  -H "Authorization: Bearer $HANZO_API_KEY" -H "Content-Type: application/json" \
  -d '{"approved":true,"note":"Verified invoice amount"}' | jq '.'
```

**MCP**

```bash
curl -s -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "auto",
      "arguments": {"op": "get_auto_runs", "input": {}}
    }
  }'
```

## Verify the outcome

- Confirm the run transitions cleanly from pending review to completed and records the reviewer identity.

## Production guardrails

- Always feed rejected autopilot proposals back as Kai corrections so future drafts stop repeating the mistake.

## Next steps & Hanzo University

- [Business Autopilot](https://docs.hanzo.ai/docs/autopilot/business) · [Continuous Ops Feedback](https://docs.hanzo.ai/docs/guides/autopilot/continuous-ops-feedback)

- **[AUTO 201 — Business Autopilot](https://hanzo.university/business-autopilot)** ([Launch interactive lab on hanzo.app/learn](https://hanzo.app/learn/business-autopilot))
