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 on
get/api/coach/clients/{id}/diary/trend/{metric}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/coach/clients/{id}/diary/trend/{metric}
  • Auth
    HTTP 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