POST
Top up the owner's credits from the Mind's wallet

Authorizations

X-Engine-Key
string
header
required

The shared engine key (ENGINE_API_KEY). Internal routes only.

X-Wallet-Token
string
header
required

The run's wallet token (wt_…, 15 minutes), naming one user and one Mind. Internal routes only.

Body

application/json
amount
string
required

Decimal string, e.g. "1.50"

token
string
default:USDC

USDC

Response

{ status: "topped_up", amount, token, account, paymentId, txHash, explorer } or a refusal { status: "limit_exceeded" | "not_allowed" | "failed", message, paymentId }. Counts against the daily cap and is stored as a payment (counterparty: the Credits contract), so it shows in the payment history and CSV; over the review threshold it is refused. 400 token_not_accepted_for_credits; 403 demo_not_allowed; 503 credits_not_deployed