curl https://win.oneshotagent.com/v1/compute/goal_01HX8K3YZ/budget \
-H "Content-Type: application/json"
{
"success": true,
"data": {
"totalBudgetUsdc": "8.500000",
"spentUsdc": "2.150000",
"reservedUsdc": "3.000000",
"remainingUsdc": "3.350000",
"spend_entries": [
{
"category": "research",
"amount_usdc": "0.850000",
"description": "Deep research: AI agent frameworks",
"created_at": "2026-01-15T12:04:50Z"
},
{
"category": "orchestrator",
"amount_usdc": "0.300000",
"description": "Orchestrator wake: planning phase 2",
"created_at": "2026-01-15T12:04:55Z"
},
{
"category": "sandbox",
"amount_usdc": "1.000000",
"description": "Sandbox compute: 0.4 hours",
"created_at": "2026-01-15T12:04:50Z"
}
]
}
}
Compute
Goal Budget
Get the budget status and spend history for a compute goal
GET
/
v1
/
compute
/
{goalId}
/
budget
curl https://win.oneshotagent.com/v1/compute/goal_01HX8K3YZ/budget \
-H "Content-Type: application/json"
{
"success": true,
"data": {
"totalBudgetUsdc": "8.500000",
"spentUsdc": "2.150000",
"reservedUsdc": "3.000000",
"remainingUsdc": "3.350000",
"spend_entries": [
{
"category": "research",
"amount_usdc": "0.850000",
"description": "Deep research: AI agent frameworks",
"created_at": "2026-01-15T12:04:50Z"
},
{
"category": "orchestrator",
"amount_usdc": "0.300000",
"description": "Orchestrator wake: planning phase 2",
"created_at": "2026-01-15T12:04:55Z"
},
{
"category": "sandbox",
"amount_usdc": "1.000000",
"description": "Sandbox compute: 0.4 hours",
"created_at": "2026-01-15T12:04:50Z"
}
]
}
}
Overview
Shows the budget ledger for a compute goal: how much was deposited, spent, reserved, and what’s left. Includes a line-by-line spend history.Path Parameters
string
required
The goal ID returned from the create endpoint
Response
string
Total budget deposited
string
Amount spent so far
string
Amount reserved for in-flight tasks
string
Available remaining budget
array
Individual spend entries:
category— Spend category (e.g.,research,browser,build,orchestrator)amount_usdc— Amount spentdescription— What the spend was forcreated_at— When the spend was recorded
curl https://win.oneshotagent.com/v1/compute/goal_01HX8K3YZ/budget \
-H "Content-Type: application/json"
{
"success": true,
"data": {
"totalBudgetUsdc": "8.500000",
"spentUsdc": "2.150000",
"reservedUsdc": "3.000000",
"remainingUsdc": "3.350000",
"spend_entries": [
{
"category": "research",
"amount_usdc": "0.850000",
"description": "Deep research: AI agent frameworks",
"created_at": "2026-01-15T12:04:50Z"
},
{
"category": "orchestrator",
"amount_usdc": "0.300000",
"description": "Orchestrator wake: planning phase 2",
"created_at": "2026-01-15T12:04:55Z"
},
{
"category": "sandbox",
"amount_usdc": "1.000000",
"description": "Sandbox compute: 0.4 hours",
"created_at": "2026-01-15T12:04:50Z"
}
]
}
}