---
title: "Read the bookkeeping agent's autonomy state per capability"
method: GET
path: "/accountant/companies/{customerId}/agent/autonomy"
tags: ["Accountant Portal"]
---

# Read the bookkeeping agent's autonomy state per capability

`GET /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

Self-managing rollout (#2587, decision D3). One state per capability: `shadow` (the agent records what it would have done and writes nothing; no row is shadow), `live` (it writes) or `paused` (it does nothing). Each read first judges the pending shadow verdicts against what happened since (the same pair applied: agreement; a leg matched to another partner, the pair rejected or unwound by a person, or the blocker resolved by a person with no pair: disagreement) and moves the state on its own only from live to paused, when a person unwinds a pair the agent applied (`human_unwind`). Shadow to live happens only by a super-admin's recorded change (`set_by_admin`, PUT on this path); no verdict count promotes (J4). Stored `promoted` and `promoted_pooled` reasons are no longer written and still read back. `documents` (the document pass) is not part of this deployment: the agent's key cannot match a document and records no document verdicts, so that capability never leaves the state a person sets. No environment variable decides any of it. Readable by the bookkeeping agent's key (409 AGENT_DISABLED / AGENT_KILLED, or 403 AGENT_PHI_RESTRICTED, where it may not work) and by human accountants assigned to the customer. The shared cloud-bookkeeping service token gets 404. Mounted only when the deployment enables the bookkeeping agent; otherwise 404.

## Path parameters

- `customerId` string, uuid, 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

## 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, 5 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`
  - …8 more
- **2026-10-29** `e1fc804546d3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/agent/autonomy/get.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)
