---
title: "List the bookkeeping agent's open findings and the work they hold"
method: GET
path: "/accountant/companies/{customerId}/agent/findings"
tags: ["Accountant Portal"]
---

# List the bookkeeping agent's open findings and the work they hold

`GET /accountant/companies/{customerId}/agent/findings`

## Request

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

Agent key only (issue loop, #2587). The company's findings that are not cleared, closed or abandoned, that still hold work, or that cleared with an issue the worker has yet to close, each with its held items. Ids, codes and counts only. `releasable` and `resumeKey` are decided by the API from the fixes this build carries (`shippedFixes` on the settings read) and never by the caller; `resumeKey` is null while the run the item was held from is still open and less than an hour old. A run under the current `resumeKey` left open for over an hour is ended (as failed) by the next start under that key, which is refused with 409 `AGENT_HELD_NOT_RESUMABLE`; the item is then handed back under the same key, or the next one. Each held item carries `createdAt`, when it was held. `githubWrites` counts the GitHub writes recorded for this company's findings in the last hour and day. Refused with 403 `AGENT_PHI_RESTRICTED` for a patient-data-restricted company. Mounted only when the deployment enables the bookkeeping agent (default off); otherwise 404. The shared cloud-bookkeeping service token gets 404 here.

## Path parameters

- `customerId` string, uuid, required

## Response `200`

Success envelope

- object
  - `data` object
    - `findings` object[], required
    - `githubWrites` object, required
      - `lastHour` integer, required
      - `last24Hours` integer, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: The agent is not enabled for this company, or its kill switch is on

## Changes

- **2026-10-29** `e1fc804546d3`: 1 info
  - endpoint added

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