CALLS_READ permission.
Date Range Filtering
Every analytics endpoint supports filtering by date or exact time. You have two options for defining your time window:- Daily Granularity (Default): Use
start_dateandend_dateinYYYY-MM-DDformat. This returns data aggregated by day. If you omit both, the API defaults to the last 30 days. - Minute Granularity: Use
start_datetimeandend_datetimein ISO 8601 format (e.g.,2024-03-01T14:30:00Z). This returns data for precise sub-day ranges and changes the aggregation to per-minute.
Available Endpoints
- Summary: High-level totals for calls, spend, and credits over a period.
- Daily Calls: Time-series data showing call volume and cost trends.
- Daily Spend: Time-series data tracking credit usage over time.
- Agents: Performance metrics grouped by individual agent.
- Providers: Cost and volume breakdown across different infrastructure providers.
/api/analytics/all endpoint which returns all the above data in a single response.