---
title: "Read p7's functions with status, Penny's mode and 14 days"
method: GET
path: "/accountant/companies/{customerId}/agent/functions"
tags: ["Accountant Portal"]
---

# Read p7's functions with status, Penny's mode and 14 days

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

## Request

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

#2587 c6960686816, row 7 (OpenBot's contract c6955242018, item 2; wireframe page 7). One row per function in the wireframe's order: Bank feeds, Categorize, Reconcile, Revenue, Bills, Documents, Close prep. `mode` is the function's capability state as GET …/agent/autonomy reads it (Reconcile is `transfers.pairs`; Bank feeds has no capability: `paused` when Penny paused herself on a source that needs a new sign-in, `live` while feeds are connected, `off` with none). Where Penny does not run at the client (not enabled, not on the deployment's allowlist, the company no agent may serve, or patient-data restricted), every function but Bank feeds reads `mode` `off` and `status` `none`, and a stop changes nothing there. `stopped` is true when someone pressed Stop here or everywhere; it sits on top of the mode and makes every status `blocked`, Bank feeds included, with the stop as its `now`. `status`: `blocked` (a run failed today, the function is paused, or a feed is in error or disconnected), `watch` (a question went to a person or a run was held), `ok` (also a `live` or `shadow` function with no run today, with `now` "No activity yet": PG-p01-001/-002, Lead #2587 c6996984303), or `none` (nothing to show: an `off` function with no run today); the screen shows `ok` as On track and `none` as Off. `now` says what happened today (UTC) or why nothing did. `history14d` is the 14 UTC days ending today, oldest first, each with its status and Penny's run counts (`waiting`: stopped by design with nothing written; `held`: stopped by a limit, the switch, the patient-data flag or a broken source). A function's runs are read from their work item keys (`txn:`, `answer:`, `pair:`, `doc:`); a resumed held run (`held:<id>:<n>`) is not counted in any function yet; Revenue, Bills and Close prep have no Penny writer yet, so their days are `none`. Bank feeds' daily state is not recorded: its days have `status` and `runs` null. A signed-in person only: both service keys get 404. Mounted only when the deployment enables the bookkeeping agent.

## Path parameters

- `customerId` string, uuid, required

## Response `200`

Success envelope

- object
  - `success` boolean, required
  - `data` AgentFunction[], required
    - `function` 'bank_feeds' | 'categorize' | 'reconcile' | 'revenue' | 'bills' | 'documents' | 'close_prep', required
    - `label` string, required
    - `status` 'blocked' | 'watch' | 'ok' | 'none', required
    - `now` string, required
    - `mode` 'live' | 'shadow' | 'paused' | 'off', required
    - `stopped` boolean, required
    - `capabilities` string[], required
    - `since` string, date, nullable, required: PG-p07-007: the day (UTC) the row's current status began ('Blocked since Nov 5'). Bank feeds: the oldest down feed's last sync day, else the earliest paused source's pause day. Others: the first day of the trailing run of days with today's status. Null when ok or none, or when no date is known (a Stop, a paused capability, a feed that never synced).
    - `history14d` object[], required
      - `date` string, date, required
      - `status` 'blocked' | 'watch' | 'ok' | 'none' | 'null', nullable, required
      - `runs` AgentFunctionRunCounts, nullable, required
        - `applied` integer, required
        - `asked` integer, required
        - `waiting` integer, required
        - `held` integer, required
        - `failed` integer, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

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