Skip to content

GET /api/mcp/profile

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

Returns the athlete profile. If no profile has been set up yet, returns an empty object ({}).

HTTP 200 — profile set up

{
"date_of_birth": "1988-04-12",
"sex": "male",
"height_cm": 178,
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-03-15T09:00:00Z"
}

HTTP 200 — no profile yet

{}
FieldTypeDescription
date_of_birthstringYYYY-MM-DD
sexstringmale, female, or other
height_cmrealHeight in centimetres
created_atstringRow creation timestamp
updated_atstringLast update timestamp

Fields not yet filled in are omitted from the response.

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