---
title: "Export analytics data"
method: GET
path: "/analytics/"
---

# Export analytics data

`GET /analytics/`

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.

## Query parameters

- `from_date` string, date-time
- `to_date` string, date-time
- `model_id` string
- `type_of_call` 'inbound' | 'outbound' | 'widget'

## Headers

- `Authorization` string, required

## Response `200`

200

- AnalyticsExportResponse200
  - `executed_actions` AnalyticsGetResponsesContentApplicationJsonSchemaExecutedActions — List of actions executed during the call, as well as their success and frequency rates.
    - `items` AnalyticsGetResponsesContentApplicationJsonSchemaExecutedActionsItemsItems[]
      - `name` string — Action name.
      - `value` integer
      - `series` AnalyticsGetResponsesContentApplicationJsonSchemaExecutedActionsItemsItemsSeriesItems[]
        - `date` string
        - `value` integer
      - `percentage_change` integer
  - `assistant_performance` AnalyticsGetResponsesContentApplicationJsonSchemaAssistantPerformance — Agent performance overview.
    - `by_minutes_used` AnalyticsGetResponsesContentApplicationJsonSchemaAssistantPerformanceByMinutesUsedItems[]
      - `model_id` string
      - `name` string
      - `minutes_used` integer
      - `percentage_change` integer
    - `by_calls_made` AnalyticsGetResponsesContentApplicationJsonSchemaAssistantPerformanceByCallsMadeItems[]
      - `model_id` string
      - `name` string
      - `calls_made` integer
      - `percent_change` integer
    - `by_success_rate` AnalyticsGetResponsesContentApplicationJsonSchemaAssistantPerformanceBySuccessRateItems[]
      - `model_id` string
      - `name` string
      - `success_rate` integer
      - `percentage_change` integer
  - `call_status_stat` AnalyticsGetResponsesContentApplicationJsonSchemaCallStatusStat — Call status overview.
    - `items` AnalyticsGetResponsesContentApplicationJsonSchemaCallStatusStatItemsItems[]
      - `status` string
      - `value` integer
      - `percentage` integer
      - `percentage_change` integer
    - `series` AnalyticsGetResponsesContentApplicationJsonSchemaCallStatusStatSeriesItems[]
      - `date` string
      - `completed` integer
      - `hangup_on_voicemail` integer
      - `busy` integer
      - `no-answer` integer
      - `failed` integer
      - `left_voicemail` integer
      - `in-progress` integer
      - `checking` integer
      - `paused` integer
      - `queue` integer
      - `initiated` integer
      - `ringing` integer
  - `recent_call_history` AnalyticsGetResponsesContentApplicationJsonSchemaRecentCallHistory — Log of all recent calls.
    - `items` AnalyticsGetResponsesContentApplicationJsonSchemaRecentCallHistoryItemsItems[]
      - `call_id` string
      - `call_status` string
      - `duration` integer
      - `agent_name` string
      - `model_id` string
      - `lead_phone_number` string
      - `created_at` string
  - `duration_metrics` AnalyticsGetResponsesContentApplicationJsonSchemaDurationMetrics — Duration metrics overview.
    - `total_minutes` integer
    - `average_duration` integer
    - `total_calls` integer
    - `series` AnalyticsGetResponsesContentApplicationJsonSchemaDurationMetricsSeriesItems[]
      - `date` string
      - `total_minutes` integer
      - `average_duration` integer
      - `total_calls` integer
    - `total_minutes_percentage_change` integer
    - `total_duration_percentage_change` integer
    - `total_calls_percentage_change` integer
  - `end_call_reason_stat` AnalyticsGetResponsesContentApplicationJsonSchemaEndCallReasonStat — An overview of reasons calls ended. For details on all the possible reasons, see [End Call Reasons](/logs#end-call-reasons).
    - `items` AnalyticsGetResponsesContentApplicationJsonSchemaEndCallReasonStatItemsItems[]
      - `reason` string
      - `value` integer
      - `percentage` integer
    - `series` AnalyticsGetResponsesContentApplicationJsonSchemaEndCallReasonStatSeriesItems[]
      - `date` string
      - `voicemail` integer
      - `human_goodbye` integer
      - `agent_goodbye` integer
      - `human_pick_up_cut_off` integer
      - `max_duration` integer
      - `idle_time_exceeded` integer
      - `goodbye_detected` integer
      - `user_disconnected` integer
      - `voicemail_message_left` integer
  - `sentiment_stat` AnalyticsGetResponsesContentApplicationJsonSchemaSentimentStat — Sentiment overview.
    - `positive_percentage` integer
    - `series` AnalyticsGetResponsesContentApplicationJsonSchemaSentimentStatSeriesItems[]
      - `date` string
      - `positive` integer
      - `total` integer
    - `positive_percentage_change` integer

---

[API](https://skmtc.dev/synthflow/apis/platform-api.md) · [All operations](https://skmtc.dev/synthflow/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/synthflow/platform-api/revisions/6976456ad422/schema)
