v2

latestOpenAPI 3.1.0Commercial API license2026-08-01592492.6 KB
internal

Snapshot yesterday's per-org request counts from Redis to daily_usage

Read Redis quota_day:org:<uuid>:<YYYY-MM-DD> counters and UPSERT into public.daily_usage for yesterday (UTC). Runs 00:05 UTC daily per 0015_daily_usage_pg_cron.sql. The Redis counters live 48h so yesterday's bucket is still readable when this fires.

Anonymous (ip:*) buckets are intentionally skipped — they have no foreign key target in organizations. Orgs with zero daily count still get a row so the dashboard can distinguish "quiet day" from "no data yet."

post/internal/cron/daily-usage-snapshot

Headers

x-internal-secretstring nullable

Response

Successful Response

object required