AI auto-QA coverage rollup
Aggregates the automated quality-scoring pipeline (voice AI auto-scoring against the tenant’s active evaluation form) into one supervisor-facing rollup over the trailing 24 hours. Returns completed_calls_last_24h (the at-most-24h denominator the qa-autoscore scheduler drains), auto_scored_calls (count of call_logs that already carry an auto_scored=TRUE qa_evaluations row — including reviewer-overridden rows, which keep provenance=TRUE), coverage_pct (share of completed calls that received an automated score, 0..100 rounded to one decimal), avg_auto_score (mean total_score across the coverable rows), and pending_review_rows (auto_scored count where flagged_for_review is still TRUE and no reviewer has corrected it yet). Replaces the need to manually join qa_evaluations against call_logs; powers the ‘AI automation coverage’ widget on the Quality dashboard. Read-only; owner / admin / supervisor.
Authorizations
Dashboard JWT token from Clerk
Headers
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
true, false