Get User Profile
Headers
Bearer token:
Bearer {accessToken}Response
User profile object
Error Responses
- 401 Unauthorized - Missing or invalid authentication token
- 500 Internal Server Error - Server error
Update User Profile
Headers
Bearer token:
Bearer {accessToken}Request Body
All fields are optional. Only provide the fields you want to update.User’s first name (1-50 characters, trimmed)
User’s last name (1-50 characters, trimmed)
Valid URL for profile picture (trimmed, must be valid URL format)
Response
Success message: “Profile updated successfully”
Updated user profile object with all current fields
Error Responses
- 400 Bad Request - Validation errors (invalid name length, invalid URL)
- 401 Unauthorized - Missing or invalid authentication token
- 500 Internal Server Error - Server error
Update Profile Picture
Headers
Bearer token:
Bearer {accessToken}Must be
multipart/form-dataForm Data
Image file for the profile picture. Supported formats depend on server configuration (typically JPEG, PNG, GIF).
Response
Success message: “Profile picture updated successfully”
Updated user profile object including the new profilePictureUrl
Error Responses
- 400 Bad Request - No file uploaded or invalid file format
- 401 Unauthorized - Missing or invalid authentication token
- 413 Payload Too Large - File size exceeds limit
- 500 Internal Server Error - Server error or file upload failure
Get User Statistics
Headers
Bearer token:
Bearer {accessToken}Response
User statistics object
Error Responses
- 401 Unauthorized - Missing or invalid authentication token
- 500 Internal Server Error - Server error