/v1/agent/* accept payment per request via the x402 payment protocol instead of an API key. An agent with a funded wallet can call them without signing up, without a key, and without buying credits.
Cost: 0.025 USDC per call, settled on Base (
eip155:8453). No credits, no account.Available x402 endpoints
There is no
/v1/agent/transactions. Transaction history is not available over x402. To read transaction history, use the API-key REST endpoint GET /v1/transactions.Parameters
string
required
EVM (
0x...) or Solana (base58) address. Required by /portfolio, /wallet, /nav, and /status. Not used by /chains.boolean
default:"false"
Aggregate holdings across addresses.
/portfolio only.boolean
default:"false"
Include token image URLs.
/portfolio only.boolean
default:"false"
Include block explorer URLs.
/portfolio only.boolean
default:"false"
Wait for a fresh sync before returning.
/portfolio and /nav.string
default:"USD"
Currency for the returned value.
/nav only./v1/agent/portfolio returns the same shape as /v1/portfolio.
Choosing an access method
Default to the REST API with an API key. Reach for x402 only when the user explicitly asks for it, or when the agent has a funded wallet and cannot hold an API key.How x402 works
A request without payment returns HTTP402 Payment Required with a payment-required header containing a base64-encoded JSON payment challenge. Your x402 client reads the challenge, signs a USDC transfer, and retries the request with the payment attached.
amount is in USDC base units — 25000 = 0.025 USDC. asset is USDC on Base.
Example Request
Error Responses
402 Payment Required
402 Payment Required
Expected on every unpaid request — this is the x402 handshake, not a failure. Read the
payment-required header, settle the payment, and retry.404 Not Found
404 Not Found
The
/v1/agent/* path does not exist. Only portfolio, wallet, nav, status, and chains are exposed over x402.Solution: If you need transactions, historical data, approvals, or token overview, use the API-key REST endpoints instead.Related
All REST Endpoints
The full 25-endpoint API reference
Transactions
Transaction history — API key only
CLI
octav agent commands with x402 built inMCP Server
octav_agent_portfolio and octav_agent_wallet tools