---
title: "Read source freshness gate status for a company"
method: GET
path: "/accountant/companies/{customerId}/agent/source-freshness"
tags: ["Accountant Portal"]
---

# Read source freshness gate status for a company

`GET /accountant/companies/{customerId}/agent/source-freshness`

## Request

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

Checks whether all connected financial feeds (Plaid, Mercury, Brex, Ramp), Gmail intake (2h window), Stripe connections, QuickBooks source syncs, and MRR sources are fresh before automated bookkeeping runs. Readable by assigned human accountants and the bookkeeping agent service principal; the legacy shared cloud-bookkeeping token receives 404.

## Path parameters

- `customerId` string, uuid, required

## Query parameters

- `details` 'quickbooks'

## Response `200`

Source freshness status envelope

- object
  - `data` object, required
    - `fresh` boolean, required: True only when no source is stale.
    - `runnableFunctions` string[], required: The functions no stale source blocks. A function not listed is blocked.
    - `checkedAt` string, date-time, required
    - `staleSources` object[], required
      - `source` string, required
      - `lastSyncedAt` string, date-time, nullable, required
      - `windowHours` integer, required
    - `sources` object[]: Legal-entity-authorized QuickBooks inventories returned for the human details request.
      - `source` 'quickbooks', required
      - `lastSyncedAt` string, date-time, nullable, required
      - `stale` boolean, required
      - `quickBooksInventory` object, required
        - `latestAttemptStatus` 'queued' | 'running' | 'completed' | 'failed' | 'null', nullable, required
        - `latestAttemptAt` string, date-time, nullable, required
        - `lastCompletedAt` string, date-time, nullable, required

## Changes

- **2026-12-03** `ab919e163d79`: 2 info
  - added the new optional `query` request parameter `details`
  - added the optional property `data/sources` to the response with the `200` status
- **2026-12-01** `1197b4659879`: 1 info
  - added the required property `data/runnableFunctions` to the response with the `200` status
- **2026-11-28** `16d6a51cf8e3`: 1 info
  - endpoint added

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