Endpoint
Authentication
This endpoint requires authentication via Bearer token.Path Parameters
Year in YYYY format (e.g., “2024”)
Month as a number from 1-12 (e.g., “3” for March, “12” for December)
Response
Indicates if the request was successful
Month summary data
The requested year
The requested month (1-12)
Array of day summaries for each day in the month
Date in YYYY-MM-DD format
Day number (1-31)
Number of meals logged on this day
Number of symptoms logged on this day
Overall status:
great, good, okay, bad, terrible, or no_dataHighest symptom intensity (1-5), or null if no symptoms
List of problematic foods consumed this day
Overall statistics for the month
Total meals logged in the month
Total symptoms logged in the month
Number of days with at least one entry
Number of days with at least one symptom
Average number of symptoms per day (for days with data)
Number of days with “great” status
Number of days with “bad” or “terrible” status
Examples
Get summary for March 2024
Get summary for current month
Get summary for previous month
Get summary for December (year-end review)
Calendar Display
This endpoint is specifically designed for calendar views. Use thedays array to render a monthly calendar where:
- Each day shows
mealCountandsymptomCount - Color-code days by
dayStatus - Show indicator icons for days with problematic foods
- Gray out days with
no_datastatus
Status Color Recommendations
| Status | Suggested Color |
|---|---|
great | Green (#10B981) |
good | Light Green (#34D399) |
okay | Yellow (#FBBF24) |
bad | Orange (#FB923C) |
terrible | Red (#EF4444) |
no_data | Gray (#9CA3AF) |
Month Statistics
ThemonthStats object provides valuable insights:
- Adherence:
daysWithData / total daysshows how consistently the user is tracking - Symptom Frequency:
daysWithSymptoms / daysWithDatashows percentage of symptomatic days - Progress: Compare
greatDaysandbadDaysacross months to track improvement - Average Severity: Use
avgSymptomsPerDayto understand overall symptom burden
Performance Notes
- This endpoint efficiently aggregates data for an entire month in a single request
- Results are typically cached for improved performance
- Use this instead of making 30+ individual day summary requests