---
title: "Lift a pause, restart the trial, or pause a capability"
method: PUT
path: "/accountant/companies/{customerId}/agent/autonomy"
tags: ["Accountant Portal"]
---

# Lift a pause, restart the trial, or pause a capability

`PUT /accountant/companies/{customerId}/agent/autonomy`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/agent/autonomy`
- Auth: HTTP bearer

A human super-admin only (403 SUPER_ADMIN_REQUIRED otherwise); both service keys get 404. `shadow` lifts a pause or restarts the trial (verdicts are counted again from now); `paused` stops the capability; `live` promotes it from shadow on the super-admin's word (reason `set_by_admin`, the person recorded) (F8, LIVE_REQUIRES_REPLAY_AND_APPROVAL, on in QA and production: only while a replay pass and an approval are on record, 409 AGENT_LIVE_NEEDS_REPLAY_AND_APPROVAL otherwise; a capability already live stays live; every move to live leaves an audit row with who and when) and no policy hold applies (migration 643), never straight from a pause (409 AGENT_AUTONOMY_PAUSED: lift it to shadow first). A request to make a Phase 3 type `live` returns 409 AGENT_CASH_BASIS_HOLD when the client has no effective book basis, including when all basis entries are future-dated. The same code applies when the client has an effective cash basis and no recorded `cash_basis` ruling. Revenue or bills can also return 409 AGENT_POLICY_FACTS_UNCONFIRMED until the required policy fact is confirmed. All six capabilities (categorize, documents, transfers.pairs, revenue, bills, close) have guarded, undo-capable writers; `live` still enforces F21/F31 holds and optional F8 replay+approval, while shadow and off stay settable. 409 AGENT_AUTONOMY_CHANGED when the state moved while it was being set. Returns the states as a GET would.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `capability` 'categorize' | 'documents' | 'transfers.pairs' | 'revenue' | 'bills' | 'close', required
  - `state` 'shadow' | 'paused' | 'live' | 'off', required

## Response `200`

Success envelope

- object
  - `success` boolean, required
  - `data` AgentAutonomy, required
    - `stoppedEverywhere` boolean, required
    - `stoppedHere` boolean, required
    - `pausedSources` object[], required: Sources whose break pauses the writes that depend on them (source_registry status needs_reconnect). Penny resumes by herself once a source recovers.
      - `sourceKind` string, required
      - `sourceId` string, uuid, required
      - `status` 'needs_reconnect', required
      - `since` string, date-time, required
    - `capabilities` object[], required
      - `capability` 'categorize' | 'documents' | 'transfers.pairs' | 'revenue' | 'bills' | 'close', required
      - `state` 'shadow' | 'live' | 'paused' | 'off', required
      - `mode` 'live' | 'shadow' | 'paused' | 'off' | 'stopped', required: The mode the wireframes show (migration 641). `stopped` sits on top of the stored state while Penny is stopped here or everywhere.
      - `since` string, date-time, nullable, required
      - `reason` 'default' | 'promoted' | 'promoted_pooled' | 'human_unwind' | 'set_by_admin' | 'live_approval_required' | 'blind_sample_wrong' | 'scorecard_fallback' | 'blind_sample_review_high', required
      - `reasonSource` string: #5669: with `scorecard_fallback`, what sent the capability back to shadow, from its latest state-change audit row: `write_guard_violation` when a Penny write broke a hard check and the write guard undid it. Absent otherwise.
      - `latestDueDate` string, date, nullable: #5669: on the bookkeeping agent's read, for `revenue`, `bills` or `close` while `live`. The date of the newest due schedule entry its writer would post today, or null when nothing is due. Absent otherwise, and when it can't be read.
      - `liveApproval` AgentLiveApproval, required: F8 (Penny plan v6.11; Jacob 2026-11-11, "Live needs a replay and Jacob's yes"): whether a replay pass and a super-admin's approval of it are on record for the capability at the company. A capability is set live only while both are.
        - `replayPassed` boolean, required
        - `replayReportRef` string, nullable, required
        - `replayPassedAt` string, date-time, nullable, required
        - `approved` boolean, required
        - `approvedByUserId` string, uuid, nullable, required
        - `approvedAt` string, date-time, nullable, required
      - `verdicts` object, required: Shadow verdicts recorded since the state began.
        - `agreements` integer, required
        - `disagreements` integer, required
        - `pending` integer, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Request failed validation

## Changes

- **2026-12-01** `9f1c93dd6855`: 1 info
  - added the optional property `data/capabilities/items/latestDueDate` to the response with the `200` status
- **2026-11-29** `48c1c56300be`: 2 warning, 1 info
  - added the new `blind_sample_review_high` enum value to the `data/capabilities/items/reason` response property for the response status `200`
  - added the new `scorecard_fallback` enum value to the `data/capabilities/items/reason` response property for the response status `200`
  - added the optional property `data/capabilities/items/reasonSource` to the response with the `200` status
- **2026-11-26** `4a2098becaf9`: 7 warning, 10 info
  - added the new `bills` enum value to the `data/capabilities/items/capability` response property for the response status `200`
  - added the new `blind_sample_wrong` enum value to the `data/capabilities/items/reason` response property for the response status `200`
  - added the new `categorize` enum value to the `data/capabilities/items/capability` response property for the response status `200`
  - added the new `close` enum value to the `data/capabilities/items/capability` response property for the response status `200`
  - …13 more
- **2026-10-29** `e1fc804546d3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/agent/autonomy/put.md)

---

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