Conversation intelligence analytics
AI-powered conversation analytics for the trailing window: aggregate totals, sentiment distribution, per-channel breakdown, agent leaderboard, time-series volume, and recent conversations. Use the optional ?days= query param (default 30, max 365) to widen or narrow the trailing window. Powers the dashboard Conversation Intelligence page; a handled 200 with empty aggregates renders like a fresh tenant.
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 Query Parameters
Trailing window in days (default 30, capped at 365).
1 <= x <= 365Response
Analytics payload in data — aggregate totals, sentiment_distribution, channel_breakdown, agent_leaderboard, time-series volume, and recent_conversations — within the standard { data, meta } envelope.
Analytics payload in data — aggregate totals, sentiment_distribution, channel_breakdown, agent_leaderboard, time-series volume, and recent_conversations — within the standard { data, meta } envelope.