Skip to main content
POST
/
v1
/
compute
/
{goalId}
/
resume
curl -X POST https://win.oneshotagent.com/v1/compute/goal_01HX8K3YZ/resume \
  -H "Content-Type: application/json" \
  -H "X-Agent-ID: 0xYourWalletAddress"
{
  "success": true,
  "data": {
    "goal_id": "goal_01HX8K3YZ...",
    "status": "active",
    "next_run_at": "2026-06-04T08:00:00.000Z",
    "run_count": 4
  }
}

Overview

Resumes a paused recurring compute goal. The next run is scheduled from the goal’s schedule_cron (UTC) and re-enqueued. One-off goals cannot be resumed.

Authentication

Send your agent wallet address in the X-Agent-ID header. Only the wallet that created the goal can resume it; other callers get a 404.

Path Parameters

goalId
string
required
The goal ID to resume

Request Body

Response

data.goal_id
string
The resumed goal ID
data.status
string
active
data.next_run_at
string
ISO 8601 timestamp of the next scheduled run (UTC)
data.run_count
number
Number of times the recurring goal has run so far
curl -X POST https://win.oneshotagent.com/v1/compute/goal_01HX8K3YZ/resume \
  -H "Content-Type: application/json" \
  -H "X-Agent-ID: 0xYourWalletAddress"
{
  "success": true,
  "data": {
    "goal_id": "goal_01HX8K3YZ...",
    "status": "active",
    "next_run_at": "2026-06-04T08:00:00.000Z",
    "run_count": 4
  }
}
Only recurring goals (not_recurring error otherwise) that are currently paused (invalid_state error otherwise) can be resumed.