TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Lokhy87/gymApp/llms.txt
Use this file to discover all available pages before exploring further.
/api/me endpoints let an authenticated user read and update their own profile. Both routes scope to the identity encoded in the Bearer token, so no user ID is required in the path.
All requests to these endpoints require a valid JWT. See Authentication for how to obtain a token.
Get current user
Returns the profile of the user identified by the Bearer token.GET /api/me
Example request
Auto-generated primary key for the user.
The email address used to log in and identify the account.
The user’s display name.
The user’s location string.
The user’s full name. Set to the value of
username at registration time unless subsequently updated.| Status | Meaning |
|---|---|
401 | Missing or invalid Bearer token. |
Update current user
Updates one or more profile fields for the authenticated user. All fields are optional; omitted fields retain their current values.PUT /api/me
Full name to display on the profile.
Display name / handle.
Email address. This also updates the login identifier.
Location string.
Confirmation string. Always
"Profile updated" on success.The updated profile fields.
Updated full name.
Updated display name.
Updated email address.
Updated location.
| Status | Meaning |
|---|---|
401 | Missing or invalid Bearer token. |