GET /api/mcp/wellness
GET /api/mcp/wellnessAuthorization: Bearer <api-key>Returns daily wellness entries. See Wellness for field definitions.
Query parameters
Section titled “Query parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | No | Start date YYYY-MM-DD (inclusive) |
to | string | No | End date YYYY-MM-DD (inclusive) |
merge | string | No | false 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 |
source | string | No | Only this source, unmerged: intervals, oura, polar, garmin, withings, hrv4training, manual |
Response
Section titled “Response”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.
Example
Section titled “Example”curl "https://mydatafor.life/api/mcp/wellness?from=2025-01-01&to=2025-03-31&source=oura" \ -H "Authorization: Bearer $FITREPO_API_KEY"Sync from Intervals.icu
Section titled “Sync from Intervals.icu”POST /api/mcp/wellness/syncPulls 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).