Skip to main content
GET /api/hermesco/treasury
Returns the live Treasury state for a workspace. Everything is derived from the ledger; nothing is set by hand.

Query parameters

workspaceId
string
default:"demo"
The workspace to read.

Response

Returns a TreasuryState.
balanceUsd
number
startingCapital + deposits + revenue - expense.
depositsUsd
number
Real capital added through Stripe Checkout.
revenueUsd
number
Revenue Stripe confirms was actually collected.
expenseUsd
number
Total of executed spends.
netProfitUsd
number
revenue - expense.
spentTodayUsd
number
Spend so far today, against the daily cap.
pendingCount
number
Proposals awaiting a human decision.
budget
Budget
The hard caps in force.
proposals
Proposal[]
All proposals for the workspace.
ledger
LedgerEntry[]
The signed ledger.
stripeMode
string
One of test, live, or none.
curl -s "https://hermesco.ai/api/hermesco/treasury?workspaceId=g_demo" | jq
{
  "workspaceId": "g_demo",
  "budget": { "startingCapitalUsd": 0, "maxSpendPerActionUsd": 50, "autoApproveUnderUsd": 10, "dailySpendCapUsd": 100, "minReserveUsd": 20 },
  "balanceUsd": 0,
  "depositsUsd": 0,
  "revenueUsd": 0,
  "expenseUsd": 0,
  "netProfitUsd": 0,
  "spentTodayUsd": 0,
  "pendingCount": 0,
  "proposals": [],
  "ledger": [],
  "stripeMode": "none"
}