/api/user/profile
Requires authentication.
string
required
Bearer token obtained from
/api/auth/login or /api/auth/signup. Format: Bearer <token>.Example
Response
200 OKstring
required
Unique identifier for the user.
string
required
The user’s display name.
string
required
The user’s email address, sourced from the local auth provider.
string
URL of the user’s profile picture.
null if not set.number
required
Total habit points accumulated.
number
required
Current consecutive days with at least one completed habit.
number
required
All-time highest streak.
string
required
ISO 8601 timestamp of when the account was created.
string
required
ISO 8601 timestamp of the last profile update.
Example response