tenants
Get Tenant Stats
Get tenant usage statistics and analytics.
Purpose: View usage statistics, performance metrics, and billing data
What it returns:
Used For:
- Billing calculations: Track monthly_usage_cents for invoicing
- Usage monitoring: Check if approaching monthly_call_limit
- Customer dashboards: Display usage stats to tenant users
- Capacity planning: Monitor concurrent calls vs max_concurrent_calls
- Performance tracking: Average call duration and sentiment scores
- Support insights: Identify usage patterns and issues
Real-World Scenarios:
- Admin sees tenant approaching limit → proactively offer upgrade
- Customer views their dashboard → sees call volume trends
- Billing system queries stats → generates monthly invoice
- Support team checks stats → troubleshoots customer issues