GET /api/mcp/profile
GET /api/mcp/profileAuthorization: Bearer <api-key>Returns the athlete profile. If no profile has been set up yet, returns an empty object ({}).
Response
Section titled “Response”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
{}| Field | Type | Description |
|---|---|---|
date_of_birth | string | YYYY-MM-DD |
sex | string | male, female, or other |
height_cm | real | Height in centimetres |
created_at | string | Row creation timestamp |
updated_at | string | Last update timestamp |
Fields not yet filled in are omitted from the response.
Example
Section titled “Example”curl "https://mydatafor.life/api/mcp/profile" \ -H "Authorization: Bearer $FITREPO_API_KEY"