Get agent quality analytics
GET/api/v1/chatbots/:chatbotId/analytics/quality
Agent behavior & quality aggregates for a single chatbot at dashboard parity (aggregate metrics only — no raw traces, no PII). Answer-quality breakdown, agent decisions, average latency, and MCP tool-error tracking. The chatbot scope is derived server-side from the authenticated owner — no email parameter is accepted. Tier-gated (pro-plus+). Required scope: analytics:read. answerRate is number | null, computed only over turns the chatbot classified; it is null (distinct from a genuine 0%) whenever answerRateTracked is false — i.e. no classified turns in the window, or the metrics were temporarily unavailable. Consumers must handle null before arithmetic and can read answerRateTracked to explain the absence.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
Quality analytics for the chatbot.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Too Many Requests — rate limit exceeded