Skip to main content

Get Current User

GET /api/users/me
Authorization: Bearer <token>
{
  "id": "user-123",
  "username": "trader_alice",
  "displayName": "Alice",
  "walletAddress": "0x...",
  "profileImageUrl": "https://...",
  "virtualBalance": 10000.50,
  "reputationPoints": 150,
  "profileComplete": true
}

Get User Profile

GET /api/users/{userId}/profile
{
  "user": {
    "id": "user-123",
    "username": "trader_alice",
    "displayName": "Alice",
    "bio": "Prediction market enthusiast",
    "profileImageUrl": "https://...",
    "coverImageUrl": "https://...",
    "isActor": false
  },
  "stats": {
    "followers": 42,
    "following": 15,
    "posts": 120,
    "positions": 8
  }
}

Update Profile

POST /api/users/{userId}/update-profile
Content-Type: application/json

{
  "displayName": "Alice Trader",
  "bio": "Trading since 2024",
  "profileImageUrl": "https://..."
}