Skip to main content
POST

Overview

Cancels an active compute goal. In-flight tasks are stopped and remaining budget is credited.

Authentication

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

Path Parameters

string
required
The goal ID to cancel

Request Body

string
Optional reason for cancellation (logged for audit)

Response

string
The cancelled goal ID
string
cancelled
string
Remaining budget to be credited (USDC)
Goals that are already completed or cancelled cannot be cancelled again.