Hanzo
OpenapiTreasury

Returns the ledger accounts the caller may see, with their balances.

Returns the ledger accounts the caller may see, with their balances.

GET /v1/treasury/accounts

Addresshttps://api.hanzo.ai/v1/treasury/accounts
MethodGET
Operationget_treasury_accounts
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the ledger accounts the caller may see, with their balances. It is tenant-isolated SERVER-SIDE: an ordinary caller sees ONLY accounts under its own "org:<tenant>:" prefix, never house accounts and never another tenant's. A SuperAdmin may widen with ?scope=house (the reserve, revenue and payout house accounts) or ?org=<tenant> — the only way to cross the tenant boundary, and only for platform sudo. The answer is honestly empty until a tenant has ledger postings.

Request

2 fields.

FieldInTypeRequiredDescription
scopequerystringScope is "house" to read the reserve/revenue/payout house accounts.
orgquerystringOrg names another tenant to read.

Response

StatusBodyMeaning
200accountsOutok

200 body — 5 fields.

FieldInTypeAlwaysDescription
accountsbodyaccountView[]Accounts are the ledger accounts in scope with their balances.
accounts[].addressbodystringAddress is the ledger account address ("org:acme:wallet", "fund:reserve", …).
accounts[].balanceCentsbodyintegerBalanceCents is that account's signed balance in minor units.
scopebodystringScope is the scope actually served: "org" or "house".
tenantbodystringTenant is the org whose accounts these are (empty for the house scope's own rows).

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Treasury API · All Hanzo APIs · Interactive reference

How is this guide?

On this page