Agent requests must have a balance >= AGENT_MIN_BALANCE (default 100 = 0.0001 USDC with 6 decimals).
upgradeability is currently forced to true for create requests.
skip_attest defaults to "1" for agent requests if omitted.
Response (subset):
GET /api/agent/vm/:id (VM status)
Auth required.
Response:
404 if the VM does not exist or does not belong to the agent.
Examples
The header values are per-request. Recompute the signature whenever the method, path, body, or timestamp changes.
Base URL
AGENT_BASE_URL=https://secretai.scrtlabs.com
Build headers (Python)
Balance (curl)
Top up (curl, x402)
If the response is 402, retry with the x402 payment-signature (or x-payment) header returned by your x402 client:
VM status (curl)
Create VM (curl)
For multipart, the signature must be computed from the fields + file metadata shown in "Multipart signature for create-vm". The easiest path is to reuse scripts/agent-create-vm.js, but a raw curl request looks like: