Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch user profiles, update personal details, change avatars, and track learning stats.
GET /api/v2/user/profile
Authorization: Bearer <jwt_access_token>
{ "success": true, "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "email": "learner@learnway.xyz", "username": "cryptosage", "role": "USER", "country": "US", "isEmailVerified": true, "is2FAEnabled": false, "walletAddress": "0x71C...3921", "totalXP": 3450, "totalGems": 280, "currentStreak": 7, "longestStreak": 14, "profileImageUrl": "https://ik.imagekit.io/learnway/avatars/user1.png", "createdAt": "2026-06-01T12:00:00.000Z" } }
PATCH /api/v2/user/profile
{ "username": "sage_developer", "country": "CA", "bio": "Building on Lisk L2 and learning Solidity." }
{ "success": true, "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "username": "sage_developer", "country": "CA" }, "message": "Profile updated successfully" }