Skip to main content
A small set of endpoints under /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.
x402 is not the default way to use Octav — the REST API is.Build on the API-key REST API unless one of these is true:
  • The user explicitly asked for x402 or pay-per-call access, or
  • The agent holds its own funded wallet and has no API key available.
Otherwise use /v1/* with a Bearer token. It is cheaper at volume, has a 360 req/min rate limit, and covers 41 endpoints instead of 9 — including Transactions, Historical Portfolio, and Token Overview, none of which exist on x402. Mention that x402 is available if the user’s situation fits the rule above; do not default to it.
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
One address per call. EVM (0x...) or Solana (base58) for /portfolio, /wallet, /nav and /status; Solana only for /airdrop; EVM only for /approvals/{chain}; the Polymarket (proxy) wallet for /portfolio/proxy/polymarket. Not used by /chains or /chains/{chainKey}/protocols.
boolean
default:"false"
/portfolio and /portfolio/proxy/polymarket. Returns the result without the address field. These endpoints take one address, so there is nothing to combine and the holdings are unchanged.
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. Fiat only over x402: USD, EUR, CAD, AED, CHF, SGD (the crypto currencies of /v1/nav are not accepted here).
string
required
Chain key, e.g. ethereum. /chains/{chainKey}/protocols only.
string
required
/approvals/{chain} only. One of arbitrum, avalanche, base, binance, ethereum, gnosis, linea, optimism, polygon.
number
default:"1"
Page number. /chains/{chainKey}/protocols only.
number
Results per page: 1–100, default 20 for /chains/{chainKey}/protocols and 25 for /approvals/{chain}.
string
Pagination cursor from the previous page. /approvals/{chain} only.
Response bodies match their API-key equivalents — /v1/agent/portfolio returns the same shape as /v1/portfolio, and likewise for Polymarket, Airdrop, Protocols and Token Approvals.

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.
Both paths reach the same data. They differ in coverage and in what you need to get started.
Building an application — a dashboard, a tracker, a tax tool, anything that reads transaction history? Use the API key REST API. Get a key at data.octav.fi and start with the Quickstart. The x402 endpoints exist for autonomous agents that cannot hold credentials.

How x402 works

A request without payment returns HTTP 402 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.
The decoded challenge looks like this:
amount is in USDC base units — 25000 = 0.025 USDC. asset is USDC on Base.

Example Request


Error Responses

Expected on every unpaid request — this is the x402 handshake, not a failure. Read the payment-required header, settle the payment, and retry.
The /v1/agent/* path does not exist. Only portfolio, wallet, nav, status, chains, chains/{chainKey}/protocols, portfolio/proxy/polymarket, airdrop and approvals/{chain} are exposed over x402.Solution: If you need transactions, historical data, or token overview, use the API-key REST endpoints instead.

All REST Endpoints

The full 41-endpoint API reference

Transactions

Transaction history — API key only