log_anything
Log by describing it
Log food, drinks, water, exercise, or a weigh-in from one natural-language sentence — the same parser as the app's voice logging. Examples: 'two eggs and toast', '30 minute run', '3 glasses of water', 'weighed 184 this morning'. Spoken dates like 'yesterday I had pizza' work. Describe the FOOD, not just numbers: stating explicit nutrition in the text ('burrito, 800 calories') pins those totals exactly but logs ONE pre-computed item with no ingredient breakdown — if you do that, follow up with update_log's `ingredients` array so the log keeps its per-item detail.
輸入參數text必填logged_attz_offset_min
Log structured exercise with a known calorie burn. For an ESTIMATED burn from plain text, use log_anything ('30 minute run').
輸入參數activity必填logged_attz_offset_mincalories_burned必填duration_minutes必填
Log a weigh-in in pounds. The newest reading also becomes the user's current weight (drives their calorie targets).
輸入參數notelogged_atweight_lb必填tz_offset_min
Log water — glasses (8 fl oz each) or an exact amount_fl_oz. Defaults to 1 glass.
輸入參數glasseslogged_atamount_fl_oztz_offset_min
get_today
Today's log & totals
Today's complete picture: calorie/macro totals vs targets, water, streak, exercises, and the item-by-item food log (`recent`: every logged item's name, calories, macros, ingredients). Each `recent` item's `id` works with update_log to correct mistakes.
輸入參數tz_offset_min
get_day
A specific day's log
Everything logged on a specific day, INCLUDING each food item's name and nutrition (same shape as get_today). Use this to answer “what did I eat yesterday / on <date>”. Each `recent` item's `id` works with update_log to correct mistakes.
輸入參數date必填
get_progress
Progress & trends
Daily calorie/macro/exercise TOTALS over time + the weight trend (no food item names — use get_day for what was actually eaten).
輸入參數daysanchortz_offset_min
Who the user is: name/handle/email, health profile, calorie/macro targets, and derived metrics.
無需輸入參數。
update_log
Fix a logged item
Correct an existing FOOD log: title, nutrition numbers, the ingredient list, meal, or time-of-day. Read get_today/get_day first — each item in `recent` (type "food") carries the `id` to pass here. Send ONLY the fields to change; values are absolute for the item as logged. Two modes, never mixed: send `ingredients` to REPLACE the whole list (include every ingredient you want kept — the log's totals recompute from it, so don't also send calories/macros), OR send top-level numbers to set totals directly — the existing ingredient breakdown then RESCALES proportionally so the parts always sum to the new totals (ingredient names/amounts don't change, so when the COMPOSITION changed — something added or removed — send `ingredients` instead). Note: ANY edit that changes a routine-created log's title or its calories — including an ingredients replacement, since totals recompute — also updates that saved routine. When logged_time changes, the log's meal may re-infer from the new hour unless you set meal explicitly. Requires a full-access token; edit one log at a time.
輸入參數mealfat_gtitlelog_id必填carbs_gfiber_gsugar_gcaloriesprotein_gsodium_mgingredientslogged_time