Export 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.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Query parameters
from_date
The start date 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.
to_date
The end date for the date range for which you want to export analytics data.
model_id
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
Filter calls by agent type (inbound
, outbound
or widget
).
Allowed values:
Response
200
executed_actions
List of actions executed during the call, as well as their success and frequency rates.
assistant_performance
Agent performance overview.
call_status_stat
Call status overview.
recent_call_history
Log of all recent calls.
duration_metrics
Duration metrics overview.
end_call_reason_stat
An overview of reasons calls ended. For details on all the possible reasons, see End Call Reasons.
sentiment_stat
Sentiment overview.