curl -X POST https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/pause \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope write>" \
-d '{ "reason": "Pausing over the weekend" }'
{
"success": true,
"data": {
"goal_id": "3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42",
"status": "paused",
"run_count": 4,
"sessions_kept": false,
"child_goals_paused": 0
}
}
Budget and control
Pause Goal
Pause an active compute goal
POST
/
v1
/
compute
/
{goalId}
/
pause
curl -X POST https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/pause \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope write>" \
-d '{ "reason": "Pausing over the weekend" }'
{
"success": true,
"data": {
"goal_id": "3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42",
"status": "paused",
"run_count": 4,
"sessions_kept": false,
"child_goals_paused": 0
}
}
Overview
Pauses an active compute goal, one-off or recurring. Nothing is refunded; the budget stays with the goal.- A recurring goal (one created with
schedule) stops its current run and discards its next scheduled wake. Resuming starts the next scheduled run. - Any other goal pauses in place. Its sessions, cases, reserved budget and open questions stay as they are; a step in progress finishes the call it is in and stops. Its running computers are paused, not deleted. Resuming continues where it was.
- Goals this goal started (its parts and the goals its calls run) are paused with it and resumed with it.
Authentication
A signed write proof or an access token: see Authentication schemes. Only the wallet that created the goal can pause it; other callers get a404.
Path Parameters
string
required
Goal ID to pause
Request Body
string
Reason for pausing (logged for audit)
Response
string
The paused goal ID
string
pausednumber
Runs completed so far
boolean
true when the goal paused in place; false for a recurring goal, whose run stoppednumber
Goals this goal started that were paused with it
curl -X POST https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/pause \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope write>" \
-d '{ "reason": "Pausing over the weekend" }'
{
"success": true,
"data": {
"goal_id": "3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42",
"status": "paused",
"run_count": 4,
"sessions_kept": false,
"child_goals_paused": 0
}
}
Only an
active goal can be paused. Otherwise the call returns invalid_state. A goal that runs on the older planner returns not_pausable.