v2
latestOpenAPI 3.1.02026-08-05100545344.4 KBExport analytics data
Export analytics programmatically for blending with your BI dashboards or internal reporting tools.
Troubleshooting
- If you are not seeing data for a specific agent, double-check the model_id you are using. Make sure the agent is active.
- Date range errors: limit the query to a maximum of 120 days.
- Unauthorized API access: double-check your API key.
get/analytics/
Query parameters
from_datestring date-time
The start date and time for the date range for which you want to export analytics data. If you don't specify the date range, it'll default to the past 7 days. The maximum date range is 120 days. Example: 2025-11-25T14:30:00Z
to_datestring date-time
The end date and time for the date range for which you want to export analytics data. Example: 2025-11-25T14:30:00Z
model_idstring
If you want to export data for a specific agent, use its model ID. You can find it on the agent's page in your dashboard.
type_of_call'inbound' | 'outbound' | 'widget'
Filter calls by agent type (inbound, outbound or widget).
Headers
Authorizationstring required
Bearer authentication
Response
200