curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/budget \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
{
"success": true,
"data": {
"budget_id": "6c5d4e3f-2a1b-4c0d-9e8f-7a6b5c4d3e2f",
"goal_id": "3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42",
"agent_id": "0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a",
"total_budget_usdc": "5.330000",
"spent_usdc": "0.012000",
"reserved_usdc": "0",
"remaining_usdc": "5.318000",
"alert_threshold": "0.80",
"alert_sent": false,
"settlement_status": "captured",
"spend_entries": [
{
"category": "tool_web_read",
"amount_usdc": "0.002000",
"description": "Orchestrator tool_call: web_read",
"created_at": "2026-01-15T12:05:10.000Z"
},
{
"category": "tool_research",
"amount_usdc": "0.010000",
"description": "Orchestrator tool_call: research",
"created_at": "2026-01-15T12:04:50.000Z"
}
]
}
}
Budget and control
Compute Budget
Get the budget status and spend history for a compute goal
GET
/
v1
/
compute
/
{goalId}
/
budget
curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/budget \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
{
"success": true,
"data": {
"budget_id": "6c5d4e3f-2a1b-4c0d-9e8f-7a6b5c4d3e2f",
"goal_id": "3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42",
"agent_id": "0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a",
"total_budget_usdc": "5.330000",
"spent_usdc": "0.012000",
"reserved_usdc": "0",
"remaining_usdc": "5.318000",
"alert_threshold": "0.80",
"alert_sent": false,
"settlement_status": "captured",
"spend_entries": [
{
"category": "tool_web_read",
"amount_usdc": "0.002000",
"description": "Orchestrator tool_call: web_read",
"created_at": "2026-01-15T12:05:10.000Z"
},
{
"category": "tool_research",
"amount_usdc": "0.010000",
"description": "Orchestrator tool_call: research",
"created_at": "2026-01-15T12:04:50.000Z"
}
]
}
}
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 atmax_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: trueare platform-paid and excluded fromspent_usdc; goal status reportsabsorbed_usdc. Quote fees are deposits.
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
impossibleproof already present in the quote. - An account requirement quoted
readythat execution finds unavailable.
awaiting_budget:
- Signed
goal.awaiting_budgetnotices 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 endsbudget_exhaustedand credits the remainder.
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 a404.
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 backarray
Spend entries, newest first:
category:tool_<tool>, e.g.tool_research,tool_web_read,tool_emailamount_usdc: amount spentdescription: what the spend was forcreated_at: when it was recorded
curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/budget \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
{
"success": true,
"data": {
"budget_id": "6c5d4e3f-2a1b-4c0d-9e8f-7a6b5c4d3e2f",
"goal_id": "3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42",
"agent_id": "0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a",
"total_budget_usdc": "5.330000",
"spent_usdc": "0.012000",
"reserved_usdc": "0",
"remaining_usdc": "5.318000",
"alert_threshold": "0.80",
"alert_sent": false,
"settlement_status": "captured",
"spend_entries": [
{
"category": "tool_web_read",
"amount_usdc": "0.002000",
"description": "Orchestrator tool_call: web_read",
"created_at": "2026-01-15T12:05:10.000Z"
},
{
"category": "tool_research",
"amount_usdc": "0.010000",
"description": "Orchestrator tool_call: research",
"created_at": "2026-01-15T12:04:50.000Z"
}
]
}
}