Analytics
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
30Successful Response
Workspace identifier
Start of the reporting period
End of the reporting period
Total number of events in the period
Validation Error
GET /v1/{workspace_id}/analytics/usage HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"period_start": "2026-01-01",
"period_end": "2026-01-01",
"buckets": [
{
"event_type": "text",
"event_date": "2026-01-01",
"count": 1,
"avg_duration_seconds": 1,
"total_duration_seconds": 1
}
],
"total_events": 1
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
30Successful Response
Workspace identifier
Start of the reporting period
End of the reporting period
Total number of calls in the period
Sum of all call durations in seconds
Average call duration in seconds
Validation Error
GET /v1/{workspace_id}/analytics/calls HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"period_start": "2026-01-01",
"period_end": "2026-01-01",
"total_calls": 1,
"total_duration_seconds": 1,
"avg_duration_seconds": 1,
"calls_by_date": [
{
"date": "text",
"count": 1,
"avg_duration_seconds": 1
}
]
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
30Successful Response
Workspace identifier
Start of the reporting period
End of the reporting period
Total number of events in the period
Validation Error
GET /v1/{workspace_id}/analytics/events HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"period_start": "2026-01-01",
"period_end": "2026-01-01",
"by_type": [
{
"key": "text",
"count": 1
}
],
"by_source": [
{
"key": "text",
"count": 1
}
],
"total_events": 1
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
30Successful Response
Data quality metrics — confidence distribution, review pipeline stats.
Workspace identifier
Start of the reporting period
End of the reporting period
Total number of events in the period
Validation Error
GET /v1/{workspace_id}/analytics/data-quality HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"period_start": "2026-01-01",
"period_end": "2026-01-01",
"confidence_distribution": [
{
"confidence_range": "text",
"count": 1
}
],
"confidence_by_source": {
"ANY_ADDITIONAL_PROPERTY": [
{
"confidence_range": "text",
"count": 1
}
]
},
"review_pipeline": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"timeseries": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"total_events": 1
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Period length in days
7Successful Response
Composite dashboard — six headline KPIs, each with a delta, plus the period length.
Higher-is-better for call_volume, avg_quality, tool_success_rate;
higher-is-worse for escalation_rate, avg_ttfb_ms, avg_duration_s.
Consumers must color deltas by that per-KPI polarity, not by delta sign alone.
Length of the reporting period in days
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/dashboard HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"call_volume": {
"value": 1,
"delta_pct": 1
},
"avg_quality": {
"value": 1,
"delta_pct": 1
},
"avg_ttfb_ms": {
"value": 1,
"delta_pct": 1
},
"escalation_rate": {
"value": 1,
"delta_pct": 1
},
"tool_success_rate": {
"value": 1,
"delta_pct": 1
},
"avg_duration_s": {
"value": 1,
"delta_pct": 1
},
"period_days": 1
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
301dPossible values: Successful Response
Production-eval quality: overall pass-rate/score, per-eval-key breakdown, and a trend.
The channel-agnostic quality surface. Returns zeroed shapes (empty by_eval_key
and trend, null rates) when no verdicts exist for the workspace/window — the
console renders an empty-state rather than erroring, so this ships safely ahead of
the eager-eval trigger being enabled in production.
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/eval-quality HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"summary": {
"eval_key": "text",
"total_evals": 1,
"judged": 1,
"pass_rate": 1,
"avg_score": 1
},
"by_eval_key": [
{
"eval_key": "text",
"total_evals": 1,
"judged": 1,
"pass_rate": 1,
"avg_score": 1
}
],
"trend": [
{
"date": "2026-01-01",
"total_evals": 1,
"judged": 1,
"pass_rate": 1,
"avg_score": 1
}
]
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
301dPossible values: Filter by call direction: inbound or outbound
Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/calls/advanced HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Start of current period
End of current period
Start of previous period
End of previous period
Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/calls/comparison?current_from=2026-01-01¤t_to=2026-01-01&previous_from=2026-01-01&previous_to=2026-01-01 HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
301dPossible values: Successful Response
Call quality score trends, distribution, and summary over time.
Served from the live Delta projection analytics.source_call_intelligence.
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/call-quality HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"summary": {
"avg_quality_score": 1,
"p50_quality_score": 1,
"p95_quality_score": 1,
"total_calls": 1,
"escalation_rate": 1,
"avg_duration_seconds": 1
},
"trend": [
{
"date": "text",
"avg_quality": 1,
"call_count": 1,
"escalation_count": 1
}
],
"quality_distribution": {
"excellent_90_100": 1,
"good_70_89": 1,
"fair_50_69": 1,
"poor_0_49": 1
}
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
301dPossible values: Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/emotion-trends HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
301dPossible values: Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/latency HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
301dPossible values: Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/tool-performance HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
301dPossible values: Successful Response
Operator escalation performance and quality comparison over time.
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/operator-performance HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"summary": {
"total_calls": 1,
"escalated_count": 1,
"escalation_rate": 1,
"operator_handled_count": 1,
"avg_escalated_duration_seconds": 1,
"avg_escalated_quality_score": 1,
"avg_non_escalated_quality_score": 1
},
"trend": [
{
"date": "2026-01-01",
"total_calls": 1,
"escalated_count": 1
}
]
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
30Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/agents HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"agents": [
{
"agent_id": "123e4567-e89b-12d3-a456-426614174000",
"agent_name": "text",
"total_calls": 1,
"completed_calls": 1,
"avg_duration_seconds": 1,
"completion_rate": 1
}
],
"period": "text"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
301dPossible values: Filter by entity ID
Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/surfaces/completion-rates HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
30Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/surfaces/channel-effectiveness HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
30Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/surfaces/field-abandonment HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
20Successful Response
Validation Error
Rate limit exceeded
GET /v1/{workspace_id}/analytics/surfaces/entity/{entity_id} HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}Last updated
Was this helpful?

