Accountant Portal

List the bookkeeping agent's stopped runs

Changed on

Agent key only; anyone else gets 403 (AGENT_ONLY). The company's runs, any trigger but simulation, whose latest attempt ended killed with a stop reason (window_open, pairs_not_live, categorize_not_live or source_paused) and started within the last withinSeconds: rows the agent left in review. A categorize_not_live stop follows the agent's judgment, so it is listed only when that attempt recorded its decision. Newest first, at most 1000. Work item keys, stop reasons and times only. A restarted worker reads it once per company so it does not run those rows again. Mounted only when the deployment enables the bookkeeping agent (default off); otherwise 404. The shared cloud-bookkeeping service token gets 404 here.

get/accountant/companies/{customerId}/agent/runs

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

customerId, string uuid required

Query parameters

withinSeconds, integer required

Response

Success envelope with runs, each { workItemKey, stopReason, startedAt, ageSeconds }

object required
success, true required
data, object required

Changes