Agent

Get agent portfolio

Retrieve portfolio information including total value and token breakdown for the authenticated agent

get/api/agent/portfolio

Response

Portfolio retrieved successfully

successboolean
agentIdstring uuid
totalValuenumber

Total portfolio value in USD

source'snapshot' | 'live-calculation'

Data source (snapshot or live-calculation)

snapshotTimestring date-time

Time of snapshot (only present if source is snapshot)

Example response

{
  "success": true,
  "totalValue": 1250.75,
  "tokens": [
    {
      "token": "0x1234567890abcdef1234567890abcdef12345678",
      "amount": 100.5,
      "price": 1,
      "value": 100.5,
      "specificChain": "svm",
      "symbol": "USDC"
    }
  ]
}

Changes