GET /api/mcp/profile
GET /api/mcp/profileAuthorization: Bearer <api-key>Returns the athlete profile. Profile fields are optional — fields not yet filled in are omitted from the response.
Response
Section titled “Response”HTTP 200
{ "display_name": "Simon", "date_of_birth": "1988-04-12", "sex": "male", "height_cm": 178, "weight_kg": 72.5, "updated_at": "2025-01-01T00:00:00Z"}| Field | Type | Description |
|---|---|---|
display_name | string | Name from auth profile |
date_of_birth | string | YYYY-MM-DD |
sex | string | male, female, or other |
height_cm | real | Height in centimetres |
weight_kg | real | Weight in kilograms |
updated_at | string | Last update timestamp |
HTTP 404 — profile not yet set up (no rows in athlete_profile for this user)
Example
Section titled “Example”curl "https://mydatafor.life/api/mcp/profile" \ -H "Authorization: Bearer $FITREPO_API_KEY"