For the complete documentation index, see llms.txt. This page is also available as Markdown.

Read a Financial Picture

Pull balances, transactions, obligations, and counterparties for the authenticated tenant.

This page is optional for headless integrations.

Goal: retrieve the authenticated tenant's current financial data for a dashboard or a grounded application workflow.

Start With a Snapshot

brain.snapshot is an SDK convenience method. The tenant is derived from the credential. Its compatibility argument is not sent to the API.

const picture = await brain.snapshot("current-tenant");

picture.balances;
picture.recentTransactions;
picture.openObligations;
picture.asOf;

The snapshot contains balances, recent transactions, open obligations, and its observation timestamp. Query the individual Ledger resources when the UI needs additional entities or filters.

Read Individual Resources

const [accounts, transactions, obligations, counterparties, cashFlow] = await Promise.all([
  brain.accounts.list({ limit: 100 }),
  brain.transactions.list({ since: "2025-09-01T00:00:00.000Z", limit: 100 }),
  brain.obligations.list({ status: "due", limit: 100 }),
  brain.counterparties.list({ limit: 100 }),
  brain.cashFlow.getServerSummary({ days: 30 }),
]);

Every resource derives the tenant from the authenticated principal. List calls take one optional parameter object, not a tenant identifier.

Filter Transactions

Filter
Type
Notes

since, until

ISO timestamp

Time range bounds

direction

enum

One of inflow, outflow, transfer, or adjustment

counterparty_id

string

One counterparty identifier

account_id

string

One account identifier

status

enum

One transaction status

limit, cursor

number, string

Keyset pagination

Ask a Grounded Question

The response contains answer and the evidence records used to ground it. The tenant is derived from the authenticated principal.

Paginate

Receive Change Notifications

Configure audit webhooks for the forwarded event names your application needs.

Event
Meaning

ledger.transaction.created

A transaction was written to the Ledger

ledger.obligation.created

An obligation was written to the Ledger

ledger.counterparty.created

A counterparty was created

raw.extraction.status_changed

A Raw extraction changed state

What's Next

Last updated