curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/tasks \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
let cursor: string | undefined;
do {
const page = await agent.getComputeTasksPage(goalId, { cursor });
for (const t of page.tasks) console.log(`${t.task_type} ${t.tool ?? ""}: ${t.status}`);
cursor = page.next_cursor ?? undefined;
} while (cursor);
{
"success": true,
"data": [
{
"id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"task_type": "agent",
"tool": null,
"description": "Build comparison landing page from the research findings",
"status": "running",
"phase": "build",
"sequence": null,
"progress_pct": 45,
"progress_message": "Generating page sections",
"result": null,
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "3.000000",
"actual_usdc": null,
"run_number": null,
"started_at": "2026-01-15T12:05:00.000Z",
"completed_at": null,
"created_at": "2026-01-15T12:04:55.000Z"
},
{
"id": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
"task_type": "tool_call",
"tool": "research",
"description": "Research top 10 AI agent frameworks",
"status": "completed",
"phase": "research",
"sequence": null,
"progress_pct": 100,
"progress_message": null,
"result": { "status": "completed", "result": { "report": "..." } },
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "1.000000",
"actual_usdc": "0.010000",
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:04:50.000Z",
"created_at": "2026-01-15T12:00:25.000Z"
},
{
"id": "4c3b2a19-8e7f-4d6c-b5a4-93827160f5e4",
"task_type": "tool_call",
"tool": "soul_hire",
"description": "Hire a freight specialist for the rates report",
"status": "failed",
"phase": "research",
"sequence": null,
"progress_pct": 0,
"progress_message": null,
"result": null,
"failure_class": "argument_error",
"error": "No soul \"freight-oracle\" can be hired. Find one with soul_find. Nothing was reserved or spent.",
"outputs": [],
"quoted_usdc": "2.000000",
"actual_usdc": null,
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:03:02.000Z",
"created_at": "2026-01-15T12:03:01.000Z"
},
{
"id": "1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a0b",
"task_type": "tool_call",
"tool": "soul_find",
"description": "Find a soul that knows freight market research",
"status": "completed",
"phase": "research",
"sequence": null,
"progress_pct": 100,
"progress_message": null,
"result": {
"souls": [
{
"slug": "deep-researcher",
"display_name": "Deep Researcher",
"tagline": "Freight lanes and the rates behind them",
"expertise": ["freight market research", "European trucking rates"],
"services": [{ "slug": "deep-report", "name": "Deep report", "description": "A sourced report on one market", "input_schema": null, "price_usd": 2 }]
}
],
"total": 1
},
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "0.500000",
"actual_usdc": "0",
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:00:10.000Z",
"created_at": "2026-01-15T12:00:09.000Z"
}
],
"page": { "limit": 100, "next_cursor": null }
}
Goals
Goal Tasks
List the tasks spawned for a compute goal, a page at a time
GET
/
v1
/
compute
/
{goalId}
/
tasks
curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/tasks \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
let cursor: string | undefined;
do {
const page = await agent.getComputeTasksPage(goalId, { cursor });
for (const t of page.tasks) console.log(`${t.task_type} ${t.tool ?? ""}: ${t.status}`);
cursor = page.next_cursor ?? undefined;
} while (cursor);
{
"success": true,
"data": [
{
"id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"task_type": "agent",
"tool": null,
"description": "Build comparison landing page from the research findings",
"status": "running",
"phase": "build",
"sequence": null,
"progress_pct": 45,
"progress_message": "Generating page sections",
"result": null,
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "3.000000",
"actual_usdc": null,
"run_number": null,
"started_at": "2026-01-15T12:05:00.000Z",
"completed_at": null,
"created_at": "2026-01-15T12:04:55.000Z"
},
{
"id": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
"task_type": "tool_call",
"tool": "research",
"description": "Research top 10 AI agent frameworks",
"status": "completed",
"phase": "research",
"sequence": null,
"progress_pct": 100,
"progress_message": null,
"result": { "status": "completed", "result": { "report": "..." } },
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "1.000000",
"actual_usdc": "0.010000",
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:04:50.000Z",
"created_at": "2026-01-15T12:00:25.000Z"
},
{
"id": "4c3b2a19-8e7f-4d6c-b5a4-93827160f5e4",
"task_type": "tool_call",
"tool": "soul_hire",
"description": "Hire a freight specialist for the rates report",
"status": "failed",
"phase": "research",
"sequence": null,
"progress_pct": 0,
"progress_message": null,
"result": null,
"failure_class": "argument_error",
"error": "No soul \"freight-oracle\" can be hired. Find one with soul_find. Nothing was reserved or spent.",
"outputs": [],
"quoted_usdc": "2.000000",
"actual_usdc": null,
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:03:02.000Z",
"created_at": "2026-01-15T12:03:01.000Z"
},
{
"id": "1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a0b",
"task_type": "tool_call",
"tool": "soul_find",
"description": "Find a soul that knows freight market research",
"status": "completed",
"phase": "research",
"sequence": null,
"progress_pct": 100,
"progress_message": null,
"result": {
"souls": [
{
"slug": "deep-researcher",
"display_name": "Deep Researcher",
"tagline": "Freight lanes and the rates behind them",
"expertise": ["freight market research", "European trucking rates"],
"services": [{ "slug": "deep-report", "name": "Deep report", "description": "A sourced report on one market", "input_schema": null, "price_usd": 2 }]
}
],
"total": 1
},
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "0.500000",
"actual_usdc": "0",
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:00:10.000Z",
"created_at": "2026-01-15T12:00:09.000Z"
}
],
"page": { "limit": 100, "next_cursor": null }
}
Overview
Lists the tasks spawned for a goal, newest first, with status, progress, result, and cost, one page at a time. Tasks are tool calls, sandbox agents, soul hires, and human approval checkpoints. A page holdslimit tasks (default 100); send page.next_cursor back as cursor to read the next one.
Authentication
A signed read proof or an access token: see Authentication schemes. Only the wallet that created the goal can list its tasks; other callers get a404.
Path Parameters
Query Parameters
Only tasks with this status:
pending, running, waiting, completed, failed or cancelled. Any other value is a 400.The previous page’s
page.next_cursor. Keep the same status while paging. A cursor this endpoint did not issue is a 400.Response
Tasks, newest first. Each has:
id: task ID (a UUID)task_type:tool_call,agent,human_approval,wait, oragent_sandbox(a soul hire is atool_callofsoul_hire)tool: tool name fortool_calltasks (e.g.,research,web_read,browser,email,soul_find), elsenulldescription: what the task doesstatus:pending,running,waiting,completed,failed, orcancelledphase: phase name the orchestrator gave the task, ornullsequence: order within the phase, ornullprogress_pct: progress (0 to 100)progress_message: latest progress text, ornullresult: task output (JSON), ornullfailure_class: why afailedtask failed, as a class:argument_error,policy_denied,budget_denied,unknown_tool,not_loaded,platform_failure,provider_failureorcustomer_system_failure;nullfor any other statuserror: the reason afailedtask failed, in words. A refusal the platform wrote (argument_error,policy_denied,budget_denied,unknown_tool,not_loaded) is quoted as stored; aplatform_failureorprovider_failuregets a generic reason, since its stored message can be a raw tool error.nullfor any other statusoutputs: what the task produced, by key (key,content_type,size_bytes,readable); read one at the outputs endpointquoted_usdc: budget the orchestrator allocated to the taskactual_usdc: amount charged, ornullrun_number: run this task belongs to (recurring goals), elsenullstarted_at,completed_at,created_at: timestamps
human_approval task waits in waiting until you answer it with the respond endpoint.
curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/tasks \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
let cursor: string | undefined;
do {
const page = await agent.getComputeTasksPage(goalId, { cursor });
for (const t of page.tasks) console.log(`${t.task_type} ${t.tool ?? ""}: ${t.status}`);
cursor = page.next_cursor ?? undefined;
} while (cursor);
{
"success": true,
"data": [
{
"id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"task_type": "agent",
"tool": null,
"description": "Build comparison landing page from the research findings",
"status": "running",
"phase": "build",
"sequence": null,
"progress_pct": 45,
"progress_message": "Generating page sections",
"result": null,
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "3.000000",
"actual_usdc": null,
"run_number": null,
"started_at": "2026-01-15T12:05:00.000Z",
"completed_at": null,
"created_at": "2026-01-15T12:04:55.000Z"
},
{
"id": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
"task_type": "tool_call",
"tool": "research",
"description": "Research top 10 AI agent frameworks",
"status": "completed",
"phase": "research",
"sequence": null,
"progress_pct": 100,
"progress_message": null,
"result": { "status": "completed", "result": { "report": "..." } },
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "1.000000",
"actual_usdc": "0.010000",
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:04:50.000Z",
"created_at": "2026-01-15T12:00:25.000Z"
},
{
"id": "4c3b2a19-8e7f-4d6c-b5a4-93827160f5e4",
"task_type": "tool_call",
"tool": "soul_hire",
"description": "Hire a freight specialist for the rates report",
"status": "failed",
"phase": "research",
"sequence": null,
"progress_pct": 0,
"progress_message": null,
"result": null,
"failure_class": "argument_error",
"error": "No soul \"freight-oracle\" can be hired. Find one with soul_find. Nothing was reserved or spent.",
"outputs": [],
"quoted_usdc": "2.000000",
"actual_usdc": null,
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:03:02.000Z",
"created_at": "2026-01-15T12:03:01.000Z"
},
{
"id": "1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a0b",
"task_type": "tool_call",
"tool": "soul_find",
"description": "Find a soul that knows freight market research",
"status": "completed",
"phase": "research",
"sequence": null,
"progress_pct": 100,
"progress_message": null,
"result": {
"souls": [
{
"slug": "deep-researcher",
"display_name": "Deep Researcher",
"tagline": "Freight lanes and the rates behind them",
"expertise": ["freight market research", "European trucking rates"],
"services": [{ "slug": "deep-report", "name": "Deep report", "description": "A sourced report on one market", "input_schema": null, "price_usd": 2 }]
}
],
"total": 1
},
"failure_class": null,
"error": null,
"outputs": [],
"quoted_usdc": "0.500000",
"actual_usdc": "0",
"run_number": null,
"started_at": null,
"completed_at": "2026-01-15T12:00:10.000Z",
"created_at": "2026-01-15T12:00:09.000Z"
}
],
"page": { "limit": 100, "next_cursor": null }
}