Insights

Patterns and weekly review

Sleep patterns, 14-day totals, today's events, and, once solids have started, 7-day nutrient tallies, targets and the allergen grid.

get/api/vega/patterns

Request

  • Base URL: https://getmyluna.app
  • URL: https://getmyluna.app/api/vega/patterns
  • Auth: one of:
    • HTTP bearer
    • API key in cookie luna_session

Response

Success

patternsobject required
daily_totalsobject[] required
nutrients_7dobject required
nutrients_todayobject required
nutrient_targetsobject required
allergens_todayobject required
allergen_gridobject required
baby_namestring required
dobstring required

YYYY-MM-DD, or empty while the family is expecting.

age_monthsnumber nullable required
age_displaystring nullable required
flagsobject required

Example response

{
  "today": [
    {
      "id": "af73aec9",
      "ts": "2026-09-20T09:49:53"
    }
  ],
  "flags": {
    "solids_started": false
  },
  "expecting": {
    "due_date": "2027-03-12"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.