Skip to main content
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_weight
float
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, obese
string
required
User’s genderAllowed values: male, female
integer
required
Number of meals per day (1-6)
string
required
User’s activity levelAllowed values: low, medium, high
string
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
List of user’s taste preferences
integer
Taste category ID
string
Taste category name (lowercase)
array
List of user’s dietary restrictions
integer
Restriction category ID
string
Restriction category name (lowercase)
array
List of user’s diet types
integer
Diet type category ID
string
Diet type name (lowercase)

Example Request

Example Response

Error Responses

error
Profile does not exist for the authenticated user
error
Authentication token is missing or invalid