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
}
}
Budget and control
Pause Goal
Pause an active recurring 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
}
}
Overview
Pauses an active recurring compute goal (one created withschedule).
Any pending scheduled wake is discarded and the goal stops running until resumed. The budget stays with the goal; nothing is refunded.
One-off goals can’t be paused.
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
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
}
}
Only a recurring goal that is
active can be paused. Otherwise the call returns not_recurring or invalid_state.