Compute
Fund Goal
Top up the budget of a recurring compute goal
POST
Overview
Tops up the budget of a recurring compute goal so it can keep running on its schedule. The requestedamount (USDC) is added to both the goal’s total and
remaining budget. One-off goals cannot be funded — fund a recurring goal or
create a new goal instead.
This is a paid endpoint that uses the x402 quote-then-pay flow, exactly like
creating a goal: the top-up amount IS the price.
- Call once with
{ amount }and no payment → you get a 402 with apayment_requestand acontext.quote_id. - Sign the USDC payment authorization and call again with the
X-Quote-Idheader and the payment signature → the budget is credited and you get a 200.
Authentication
Send your agent wallet address in theX-Agent-ID header. Only the wallet that
created the goal can fund it; other callers get a 404. The wallet that pays must
be the goal owner — payment from any other wallet is rejected when the quote is
redeemed.
Path Parameters
The goal ID to top up
Request Body
Amount to add to the goal’s budget, in USDC. Must be a positive number.
Response
The funded goal ID
Amount added to the budget (USDC)
New total budget after the top-up (USDC)
New remaining budget after the top-up (USDC)