curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/outputs \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
const goal = await agent.getComputeGoal(goalId);
console.log(goal.result);
let cursor: string | undefined;
do {
const page = await agent.getComputeOutputsPage(goalId, { limit: 100, cursor });
for (const out of page.outputs) {
if (!out.readable) continue;
const { content } = await agent.getComputeOutput(goalId, out.key);
console.log(out.key, content);
}
cursor = page.next_cursor ?? undefined;
} while (cursor !== undefined);
goal = client.get_compute_goal(goal_id)
print(goal["result"])
cursor = None
while True:
page = client.get_compute_outputs_page(goal_id, limit=100, cursor=cursor)
for out in page["outputs"]:
if out["readable"]:
print(out["key"], client.get_compute_output(goal_id, out["key"])["content"])
cursor = page["next_cursor"]
if cursor is None:
break
{
"success": true,
"data": [
{
"key": "artifacts/b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b/result.txt",
"task_id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"content_type": "text/plain",
"size_bytes": 84,
"summary": "Agent output: result.txt (84 bytes)",
"readable": true,
"updated_at": "2026-01-15T12:06:10.000Z"
}
],
"page": { "limit": 100, "next_cursor": null }
}
{
"success": true,
"data": {
"key": "artifacts/b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b/result.txt",
"task_id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"content_type": "text/plain",
"size_bytes": 84,
"summary": "Agent output: result.txt (84 bytes)",
"readable": true,
"updated_at": "2026-01-15T12:06:10.000Z",
"content": "f6a0dbd5b741d76782253e9be928c53e3a4ab4ab4c60ee7f46c53b704688315f\n2880067194370816120",
"truncated": false
}
}
Goals
Goal Outputs
List and read what a compute goal’s tasks produced
GET
/
v1
/
compute
/
{goalId}
/
outputs
curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/outputs \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
const goal = await agent.getComputeGoal(goalId);
console.log(goal.result);
let cursor: string | undefined;
do {
const page = await agent.getComputeOutputsPage(goalId, { limit: 100, cursor });
for (const out of page.outputs) {
if (!out.readable) continue;
const { content } = await agent.getComputeOutput(goalId, out.key);
console.log(out.key, content);
}
cursor = page.next_cursor ?? undefined;
} while (cursor !== undefined);
goal = client.get_compute_goal(goal_id)
print(goal["result"])
cursor = None
while True:
page = client.get_compute_outputs_page(goal_id, limit=100, cursor=cursor)
for out in page["outputs"]:
if out["readable"]:
print(out["key"], client.get_compute_output(goal_id, out["key"])["content"])
cursor = page["next_cursor"]
if cursor is None:
break
{
"success": true,
"data": [
{
"key": "artifacts/b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b/result.txt",
"task_id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"content_type": "text/plain",
"size_bytes": 84,
"summary": "Agent output: result.txt (84 bytes)",
"readable": true,
"updated_at": "2026-01-15T12:06:10.000Z"
}
],
"page": { "limit": 100, "next_cursor": null }
}
{
"success": true,
"data": {
"key": "artifacts/b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b/result.txt",
"task_id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"content_type": "text/plain",
"size_bytes": 84,
"summary": "Agent output: result.txt (84 bytes)",
"readable": true,
"updated_at": "2026-01-15T12:06:10.000Z",
"content": "f6a0dbd5b741d76782253e9be928c53e3a4ab4ab4c60ee7f46c53b704688315f\n2880067194370816120",
"truncated": false
}
}
Overview
A goal answers in two places. Its short answer, in the planner’s words, isresult on the status endpoint. What its tasks produced is here: the files a sandbox task left in its output folder, and tool results too large for a task row.
GET /v1/compute/{goalId}/outputslists them in key order,limitat a time (1 to 500, default 100). Sendpage.next_cursorback ascursorfor the next page.GET /v1/compute/{goalId}/outputs/{key}returns one with its content. The key is a path and keeps its slashes.
awaiting_confirmation.
Authentication
A signed read proof or an access token: see Authentication schemes. Only the wallet that created the goal can read its outputs; other callers get a404.
Path Parameters
Response
The list returns an array; a read returns one object. Each output has:
key:artifacts/<task_id>/<file>for a file a sandbox task left,results/<tool>/<task_id>for a large tool resulttask_id: the task that produced it, ornullcontent_type: for exampletext/plainsize_bytes: size of the contentsummary: one line describing it, ornullreadable:falsewhen the content was too large to keep (about 10 KB and over); only the description existsupdated_at: timestamp
content: the text, ornullwhenreadableisfalsetruncated:truewhen the content was cut to 200,000 characters
outputs by key.
curl https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/outputs \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
const goal = await agent.getComputeGoal(goalId);
console.log(goal.result);
let cursor: string | undefined;
do {
const page = await agent.getComputeOutputsPage(goalId, { limit: 100, cursor });
for (const out of page.outputs) {
if (!out.readable) continue;
const { content } = await agent.getComputeOutput(goalId, out.key);
console.log(out.key, content);
}
cursor = page.next_cursor ?? undefined;
} while (cursor !== undefined);
goal = client.get_compute_goal(goal_id)
print(goal["result"])
cursor = None
while True:
page = client.get_compute_outputs_page(goal_id, limit=100, cursor=cursor)
for out in page["outputs"]:
if out["readable"]:
print(out["key"], client.get_compute_output(goal_id, out["key"])["content"])
cursor = page["next_cursor"]
if cursor is None:
break
{
"success": true,
"data": [
{
"key": "artifacts/b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b/result.txt",
"task_id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"content_type": "text/plain",
"size_bytes": 84,
"summary": "Agent output: result.txt (84 bytes)",
"readable": true,
"updated_at": "2026-01-15T12:06:10.000Z"
}
],
"page": { "limit": 100, "next_cursor": null }
}
{
"success": true,
"data": {
"key": "artifacts/b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b/result.txt",
"task_id": "b7e4f0a2-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"content_type": "text/plain",
"size_bytes": 84,
"summary": "Agent output: result.txt (84 bytes)",
"readable": true,
"updated_at": "2026-01-15T12:06:10.000Z",
"content": "f6a0dbd5b741d76782253e9be928c53e3a4ab4ab4c60ee7f46c53b704688315f\n2880067194370816120",
"truncated": false
}
}