Food Log
Get food logs for a date (raw entries, totals, or both)
get/api/food-log
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/food-log
- AuthHTTP bearer
Query parameters
datestring
Example:2024-01-15
format'raw' | 'totals' | 'both'
limitnumber
Example:50
Headers
x-timezonestring required
Response
unknown required
Example response
{
"success": true,
"date": "2026-02-19",
"entries": [
{
"id": 101,
"user_id": 5,
"food_name": "Grilled Chicken Breast",
"serving_size": "4 oz",
"calories": 180,
"protein": 35,
"carbs": 0,
"fat": 3.5,
"fiber": 0,
"sugar": 0,
"sodium": 75,
"meal_number": 2,
"log_time": "12:30:00",
"log_date": "2026-02-19",
"created_at": "2026-02-19T12:30:00.000Z"
}
],
"totals": {
"calories": 180,
"protein": 35,
"carbs": 0,
"fat": 3.5,
"fiber": 0,
"sodium": 75,
"sugar": 0,
"count": 1,
"foods": [
"Grilled Chicken Breast"
]
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.