admin

Aggregate Daily

Aggregate ai_usage_log into ai_usage_daily_agg for a given date.

Accessible to admins via JWT OR to Cloud Scheduler via X-Cron-Secret. Before 2026-04-23 this endpoint was locked behind Depends(require_admin) — FastAPI resolved that dep BEFORE the body ran, so a cron-secret-only call always got 403 and the daily aggregation was silently stale until a human admin manually invoked the endpoint.

post/api/admin/aggregate

Request

  • Base URL: https://api.stellara.natlex.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.stellara.natlex.it/api/admin/aggregate
  • Auth: none declared

Query parameters

datestring required

Headers

authorizationstring nullable
X-Cron-Secretstring nullable

Response

Successful Response

datestring required
rows_upsertedinteger required

Changes

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