Get Profile
Profile
Get Profile
Retrieve the authenticated user’s profile information including fitness goals, body metrics, dietary preferences, and nutritional targets
GET
Get Profile
Authentication
This endpoint requires authentication. Include a valid JWT token in the Authorization header:Request
No parameters required. The profile is retrieved for the currently authenticated user.Response
integer
required
Profile ID
integer
required
Associated User ID
string
required
User’s fitness goalAllowed values:
lose_weight, maintain_weight, gain_weightfloat
required
User’s height in centimeters (140-220)
float
required
User’s weight in kilograms (35-300)
string
required
User’s body typeAllowed values:
lean, normal, stocky, obesestring
required
User’s genderAllowed values:
male, femaleinteger
required
Number of meals per day (1-6)
string
required
User’s activity levelAllowed values:
low, medium, highstring
required
User’s birth date in ISO format (YYYY-MM-DD). User must be 16-100 years old.
float
User’s body fat percentage (optional, >= 0.0)
float
User’s target calories (optional, >= 0.0)
float
User’s target protein in grams (optional, >= 0.0)
float
User’s target carbs in grams (optional, >= 0.0)
float
User’s target fat in grams (optional, >= 0.0)
array
array
Example Request
Example Response
Error Responses
error
Profile does not exist for the authenticated user
error
Authentication token is missing or invalid
