Endpoint
Authentication
This endpoint requires authentication via Bearer token.Query Parameters
Filter entries by specific date in YYYY-MM-DD format (e.g., “2024-03-15”)
Start date for date range filter in YYYY-MM-DD format
End date for date range filter in YYYY-MM-DD format
Filter by entry type. Options:
meal, symptom, allResponse
Indicates if the request was successful
Array of diary entries
Entry ID (MongoDB ObjectId)
User ID who created the entry
Entry date in YYYY-MM-DD format
Entry type:
meal or symptomMeal data (only present when type is “meal”)
Meal type:
breakfast, lunch, dinner, or snackTime in HH:MM format
Array of foods consumed
Food database ID
Name of the food
Portion description
Quantity in grams
Whether this food was marked as problematic
Additional notes about the meal
Symptom data (only present when type is “symptom”)
Symptom type:
bloating, gas, cramps, nausea, diarrhea, constipation, reflux, fatigue, headache, brain_fog, or otherIntensity level from 1 (mild) to 5 (severe)
Time in HH:MM format
Duration in minutes
Additional notes about the symptom
Timestamp when the entry was created
Timestamp when the entry was last updated