Skip to content

GET /api/mcp/wellness

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

Returns daily wellness entries. See Wellness for field definitions.

ParameterTypeRequiredDescription
fromstringNoStart date YYYY-MM-DD (inclusive)
tostringNoEnd date YYYY-MM-DD (inclusive)
mergestringNofalse returns every source’s rows as stored. By default the response is one merged row per day (with a sources object) using your preferred source order
sourcestringNoOnly this source, unmerged: intervals, oura, polar, garmin, withings, hrv4training, manual

HTTP 200

{
"wellness": [
{
"date": "2025-03-15",
"source": "oura",
"weight_kg": 72.1,
"rhr_bpm": 42,
"hrv_rmssd": 68.2,
"sleep_hours": 7.8,
"sleep_score": 82,
"readiness": 84,
"steps": 10432
}
]
}

Null metric columns are included in each entry with a null value.

Terminal window
curl "https://mydatafor.life/api/mcp/wellness?from=2025-01-01&to=2025-03-31&source=oura" \
-H "Authorization: Bearer $FITREPO_API_KEY"
POST /api/mcp/wellness/sync

Pulls wellness from Intervals.icu or WHOOP into FitRepo (the sync_wellness tool). Body (all optional): { "source": "intervals" | "whoop" | "all", "from": "YYYY-MM-DD", "to": "YYYY-MM-DD" }. With no source it uses Intervals.icu if connected, otherwise WHOOP; all syncs every connected provider and returns { results, errors }. With no from it continues from the last synced day, always re-checking the last two days (steps are finalised the day after). Days with no values are skipped. See sync_wellness.

HTTP 200

{ "source": "intervals", "from": "2026-09-29", "to": "2026-10-05", "fetched": 7, "stored": 6, "empty": 1, "latestDate": "2026-10-05" }

Errors: 400 invalid source or invalid / too-long range (max 366 days), 409 the provider isn’t connected or rejected its login (the message says which and to reconnect), 429 rate limited (20 per hour).