---
title: "Trigger Daily Summary"
method: POST
path: "/api/v1/internal/daily-summary"
tags: ["v1", "Internal"]
---

# Trigger Daily Summary

`POST /api/v1/internal/daily-summary`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/internal/daily-summary`
- Auth: none declared

Trigger daily summary for a shop (or all shops).

Called hourly by the notification_scheduler container (moved off GitHub
Actions — see backend/workers/notification_scheduler.py). Each shop is
only processed if its local time falls within the 4:30 PM ± 30 min window
(per `_is_in_send_window`) AND this caller wins the atomic once-per-day
claim for that shop (per `_claim_sent_today`). Pass `force=true` to bypass
both checks (useful for manual testing).

## Query parameters

- `shop_id` integer, nullable: Shop ID (if None, runs for all shops)
- `force` boolean: Bypass the shop-local time window check

## Headers

- `X-Internal-Key` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
