Get Current User
Copy
Ask AI
GET /api/users/me
Authorization: Bearer <token>
Copy
Ask AI
{
"id": "user-123",
"username": "trader_alice",
"displayName": "Alice",
"walletAddress": "0x...",
"profileImageUrl": "https://...",
"virtualBalance": 10000.50,
"reputationPoints": 150,
"profileComplete": true
}
Get User Profile
Copy
Ask AI
GET /api/users/{userId}/profile
Copy
Ask AI
{
"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
Copy
Ask AI
POST /api/users/{userId}/update-profile
Content-Type: application/json
{
"displayName": "Alice Trader",
"bio": "Trading since 2024",
"profileImageUrl": "https://..."
}