Weight & Measurements

Get full weight history with start/goal weights

Optional ?months= filters the chart window (e.g. 1, 6, 12). Optional ?aggregate=monthly collapses entries to one averaged point per calendar month, for compact "all time" charting.

get/api/weight/history

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/weight/history
  • Auth
    HTTP bearer

Query parameters

monthsstring required
aggregatestring required

Response

unknown required

Example response

{
  "success": true,
  "startWeight": 220,
  "goalWeight": 150,
  "currentWeight": 185.5,
  "totalLost": 34.5,
  "history": [
    {
      "id": 1,
      "weight": "220.0",
      "recorded_at": "2025-06-01T00:00:00.000Z"
    },
    {
      "id": 42,
      "weight": "185.5",
      "recorded_at": "2026-02-19T08:00:00.000Z"
    }
  ]
}

Changes

No recorded changes to this operation across all 34 revisions of this API.