Aggregated widgets for the mobile home screen β plan summary, conversation metrics, agent performance.
Plan, MAU, and AI credits β one call
Aggregates the three above-the-fold widgets on the mobile home screen β plan + expiry, monthly-active-users counter, AI credits counter β into one response so the screen renders without staggered paints.
Organizations without a subscription row receive a FREE-plan fallback (code: FREE, status: ACTIVE, both limit: null). limit: null means unlimited β render an infinity glyph rather than 0.
Plan, MAU, and AI credits β one call βΊ Responses
Aggregate.
successcodeConversation counts over time
Conversations bucketed by hour (range=day) or by day (range=week, range=month). Powers the line chart on the mobile home screen. Empty buckets are returned with total: 0 so the chart axis stays dense. label is pre-formatted server-side β "14 May" for daily buckets, "13:00" for hourly β so the client does not need locale logic on the axis.
Buckets are anchored on the server clock (Asia/Jakarta).
query Parameters
rangeBucket size. day β 24 hourly buckets starting from 00:00 today. week β 7 daily buckets, ending today inclusive. month β 30 daily buckets, ending today inclusive.
Conversation counts over time βΊ Responses
Bucket series.
successPer-agent assigned + resolved counts
Per-agent total_assigned and total_resolved within the requested period. Rows are ordered total_resolved DESC, total_assigned DESC so the top performer surfaces first. Agents with zero activity in the period are excluded β the mobile card has limited real estate.
Window semantics are identical to /home/conversation-metrics.
query Parameters
rangePer-agent assigned + resolved counts βΊ Responses
Agent leaderboard for the period.
success