Skip to main content
GET

Overview

Returns a compute goal’s budget ledger (deposited, spent, reserved, remaining) and its itemized spend history.

How the budget is spent

  • Tool calls are charged as tool_<tool>. Browser calls reserve and cap execution at max_steps (25–100; default 25); builds use the base price.
  • Soul hires reserve the service’s price from the budget. The reservation shows in reserved_usdc.
  • Loop usage records model and machine costs. Entries marked absorbed: true are platform-paid and excluded from spent_usdc; goal status reports absorbed_usdc. Quote fees are deposits.
On completion, failure or cancellation, remaining_usdc returns as OneShot credits and settlement_status becomes refunded. Refunds wait for in-flight reservations. The receipt records spend; impossible endings also record the claim, verification and disputes, even with no spend. These return the full deposit, including spend and the quote fee:
  • A verified impossible proof already present in the quote.
  • An account requirement quoted ready that execution finds unavailable.
Requirements quoted as setup or owner action make no readiness promise. Impossible endings wait five minutes for unreported usage. Late usage is recorded once and owed unless eligible for a full refund. Goals are funded in tranches. A case takes its slice when it first runs, so waiting cases hold nothing. When the budget cannot fund the next case or paid step, the goal waits in awaiting_budget:
  • Signed goal.awaiting_budget notices report units done and left, the cost to finish (price per unit for open goals) and what waiting cases need.
  • Funding resumes saved work.
  • After params.budget_hold_days (default 7, up to 90) it ends budget_exhausted and credits the remainder.
Ended budget goals can be funded again; later receipts cover only new spending.

Authentication

A signed read proof or an access token: see Authentication schemes. Only the wallet that created the goal can read its budget; other callers get a 404.

Path Parameters

string
required
Goal ID (a UUID) from the create endpoint

Response

string
Budget record ID
string
Goal ID
string
Owning agent ID
string
Total deposited, including top-ups
string
Spent so far
string
Held for in-flight tool calls and soul hires
string
Available budget
string
Spent fraction at which alert_sent turns true (default 0.80)
boolean
Whether spend has crossed alert_threshold. The owner receives an in-app notice and signed goal.budget_warning webhook once.
string
captured while the goal runs; refunded once unspent budget has been credited back
array
Spend entries, newest first:
  • category: tool_<tool>, e.g. tool_research, tool_web_read, tool_email
  • amount_usdc: amount spent
  • description: what the spend was for
  • created_at: when it was recorded