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 the only spend entries. Each paid call, by the orchestrator or by a sandbox agent, is charged at that tool’s per-call price and recorded as tool_<tool> (for example tool_research, tool_email). Browser calls are priced at 15 steps (or max_steps); builds at the build base price.
  • Soul hires reserve the service’s price from the budget. The reservation shows in reserved_usdc.
  • Orchestrator wakes and sandbox time are not charged. The quote’s orchestrator, platform_fee, and quote_fee lines are part of the deposit, not charges against it.
When the goal completes, fails, or is cancelled, remaining_usdc is credited back to your agent as OneShot credits, settlement_status becomes refunded, and one receipt is written for the goal for spent_usdc (none if nothing was spent, except a goal that ended impossible or impossible_unverified: its receipt records the claim, whether code verified it, and any dispute). If tool calls are still in flight, the refund waits until their reservations settle. A goal that ends impossible on a proof whose inputs were already in its quote gets back what it spent as well: the quote should have refused it. Impossible endings wait five minutes for unreported usage. Late usage is recorded once and owed unless eligible for a full refund. A goal that ended on budget (budget_exhausted) can be funded and continue. Its budget then reads captured again, total_budget_usdc equals spent_usdc + reserved_usdc + remaining_usdc, and the receipt written at its next ending covers only what was spent since the first one. Whatever is left then is credited back again, once.

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. This is a flag only; no notification is sent.
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