Skip to content

GET /api/agent/bank-accounts

Returns every active bank account for the caller's org with reconciled and statement balances.

Auth

  • Required scope: READ_BANK
  • Header: Authorization: Bearer cr_live_<prefix>_<secret>

Responses

200 — Array of active bank accounts

Body:

FieldTypeRequiredNotes
accountsarray of BankAccountyes
redactedItemCountintegeryesNumber of accounts that were OMITTED from accounts because the underlying Xero account is flagged sensitive and the caller's key does NOT carry the READ_SENSITIVE scope. List endpoints use the drop policy (the row is absent entirely); composite endpoints like /cash-position use the redact policy (the row stays, the name is rewritten). Always 0 when the key carries READ_SENSITIVE.
billingAlertBillingAlertno
xeroAlertXeroAlertno

401 — Missing / invalid bearer, wrong prefix, secret mismatch, or revoked key

Body: ErrorResponse

FieldTypeRequiredNotes
errorstringyes

403 — Key lacks the required scope

Body: ErrorResponse

FieldTypeRequiredNotes
errorstringyes

429 — Per-minute burst or daily quota exhausted

Body: ErrorResponse

FieldTypeRequiredNotes
errorstringyes

Response headers

Every successful response carries X-CashRunway-Subscription, X-CashRunway-Plan, X-CashRunway-Quota-Remaining, and X-CashRunway-Quota-Reset. Trialing subscriptions also include X-CashRunway-Trial-Days-Remaining. See the overview for details.

Released under a proprietary license.