Skip to main content
GET
/
portfolio
Get User Portfolio
curl --request GET \
  --url https://api.vexara.io/v1/portfolio \
  --header 'Authorization: Bearer <token>'
{
  "totalValue": 123,
  "holdings": [
    {
      "agentId": "<string>",
      "agentName": "<string>",
      "tokenAddress": "<string>",
      "balance": 123,
      "currentPrice": 123,
      "value": 123,
      "pnl": 123,
      "pnlPercentage": 123
    }
  ],
  "earnedRevenue": 123
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Include the token in the Authorization header

Response

200 - application/json

Portfolio retrieved successfully

totalValue
number

Total portfolio value in SOL

holdings
object[]
earnedRevenue
number

Total revenue earned from holdings