Coach
Mobile Coach API — "View trends" on a Client diary section. metric: water | movement | vitamins | vibes. Byte-for-byte mirror of the client's own GET /log/{metric}/trend (GET /vibe-log/trend for vibes), bucketed in the client's stored timezone. Vibes count every log, as the diary shows them. Requires coach_data_consent_at.
Changed onget/api/coach/clients/{id}/diary/trend/{metric}
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/coach/clients/{id}/diary/trend/{metric}
- AuthHTTP bearer
Path parameters
idnumber required
metricstring required
Query parameters
window'month' | '6months' | 'year'
month | 6months | year
datestring
Example:2026-10-26
End-date anchor, YYYY-MM-DD
Changes
- info
endpoint added
- info