Progress & Tracking

Get paginated meal history

get/api/meals/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/meals/history
  • Auth
    HTTP bearer

Query parameters

pagestring
limitstring
uniquestring

Return only unique entries by food_name

Response

unknown required

Example response

{
  "success": true,
  "data": [
    {
      "id": 101,
      "user_id": 5,
      "food_name": "Grilled Chicken",
      "serving_size": "4 oz",
      "calories": 180,
      "protein": 35,
      "carbs": 0,
      "fat": 4,
      "fiber": 0,
      "sugar": null,
      "sodium": null,
      "meal_number": 2,
      "log_time": "12:30:00",
      "log_date": "2026-03-10",
      "is_planned": false,
      "created_at": "2026-03-10T12:30:00.000Z"
    }
  ],
  "total": 120,
  "page": 1,
  "limit": 20,
  "totalPages": 6
}

Changes

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