Meal Notes

List meal notes for a meal. Clients see their own; coaches/admins pass user_id to read a client's.

get/api/meal-notes

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/meal-notes
  • Auth
    HTTP bearer

Query parameters

log_datestring required
Example:2026-04-24
meal_numbernumber required
Example:2

1=breakfast, 2=lunch, 3=dinner, 4-6=snack

user_idnumber

When set by a coach/admin caller, returns notes for this client instead of the caller. Clients may only omit or pass their own id.

scope'meal' | 'food' | 'all'

'meal' = food_log_id IS NULL only; 'food' = food_log_id IS NOT NULL only; 'all' = both (default).

Response

unknown required

Example response

{
  "success": true,
  "notes": [
    {
      "id": 12,
      "user_id": 5,
      "log_date": "2026-04-24",
      "meal_number": 2,
      "meal_type": "lunch",
      "food_log_id": 101,
      "body": "Ate out, estimated portions.",
      "created_at": "2026-04-24T12:30:00.000Z",
      "updated_at": "2026-04-24T12:30:00.000Z"
    }
  ]
}

Changes

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