Skip to content

GET /api/mcp/profile

GET /api/mcp/profile
Authorization: Bearer <api-key>

Returns the athlete profile. Profile fields are optional — fields not yet filled in are omitted from the 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"
}
FieldTypeDescription
display_namestringName from auth profile
date_of_birthstringYYYY-MM-DD
sexstringmale, female, or other
height_cmrealHeight in centimetres
weight_kgrealWeight in kilograms
updated_atstringLast update timestamp

HTTP 404 — profile not yet set up (no rows in athlete_profile for this user)

Terminal window
curl "https://mydatafor.life/api/mcp/profile" \
-H "Authorization: Bearer $FITREPO_API_KEY"