Water & Vitamins

Water intake trend (oz/day) for sharing

Changed on

Daily series for the shareable trend card, shaped like GET /journey/weight-trend. window = month (30 days) | 6months (180) | year (365); one point per logged day, empty days omitted. Headline stats (starting/current/goal/change/average/goal_progress_pct) sit beside the points.

get/api/log/water/trend

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/log/water/trend
  • Auth
    HTTP bearer

Query parameters

window'month' | '6months' | 'year'

Same windows as GET /journey/weight-trend: month = last 30 days, 6months = last 180, year = last 365. Defaults to "month".

datestring
Example:2026-10-26

End-date anchor in YYYY-MM-DD (inclusive). Defaults to today in the user's timezone.

Headers

x-timezonestring required

Response

unknown required

Example response

{
  "metric": "water",
  "window": "month",
  "unit": "oz",
  "points": [
    {
      "date": "2026-10-20",
      "value": 48
    },
    {
      "date": "2026-10-21",
      "value": 64
    },
    {
      "date": "2026-10-23",
      "value": 72
    }
  ],
  "goal": 64,
  "starting_value": 48,
  "current_value": 72,
  "change": 24,
  "average": 61.3,
  "days_logged": 3,
  "goal_progress_pct": 67
}

Changes