---
title: "Your week summary card"
method: GET
path: "/api/vega/weekly-summary"
tags: ["Insights"]
---

# Your week summary card

`GET /api/vega/weekly-summary`

## Request

- Base URL: `https://getmyluna.app`
- URL: `https://getmyluna.app/api/vega/weekly-summary`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `luna_session`

The previous full ISO week (Monday to Sunday, family-local) from the family's own log: feeds and nappies per day with entries, sleep logged per day (if any), entries per caregiver and days with entries out of 7. `show` is false (with a `reason`) while expecting, without a date of birth, for families under 7 days old, when that week has entries on fewer than 2 days, or once this caregiver has dismissed it this week.

## Response `200`

Success

- WeeklySummaryResponse
  - `show` boolean, required
  - `reason` 'expecting' | 'no_dob' | 'family_too_new' | 'too_few_days' | 'dismissed', nullable
  - `week` string, required: The current ISO week (family-local).
  - `summary` WeeklySummary: Counts from the family's own log for the previous full ISO week. No targets or comparisons.
    - `week` string, required: ISO week summarised (the previous one).
    - `week_start` string, required
    - `week_end` string, required
    - `current_week` string, required
    - `days_logged` integer, required: Days of that week with at least one entry (out of 7).
    - `days_in_week` integer
    - `entries` integer, required
    - `feeds` integer, required
    - `nappies` integer, required
    - `feeds_per_day` number, required: Feeds per day with entries.
    - `nappies_per_day` number, required: Nappies per day with entries.
    - `sleep_logged` boolean, required
    - `sleep_minutes_per_day` integer, nullable: Sleep logged per day with entries, in whole minutes. Null if no sleep was logged.
    - `by_author` WeeklySummaryAuthor[], required
      - `author` string, required: Display name (never the raw username). 'Other' for entries by no current member.
      - `entries` integer, required
      - `is_me` boolean, required
    - `baby_name` string, required

## Other responses

- `401`: Missing or invalid credentials

---

[API](https://skmtc.dev/getmyluna/apis/luna-api.md) · [All operations](https://skmtc.dev/getmyluna/apis/luna-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getmyluna/apis/luna-api/revisions/ef7b359c9648?raw)
