Skip to main content
GET
/
agents
/
{agentId}
/
analytics
Error
A valid request URL is required to generate request examples
{
  "success": true,
  "data": {
    "containment": 123,
    "transferRate": 123,
    "p50ByLang": {},
    "p95ByLang": {},
    "costBreakdown": {},
    "charsPerMin": 123,
    "byChannel": {},
    "answerStats": {
      "totalCalls": 123,
      "answeredCalls": 123,
      "missedCalls": 123,
      "completedCalls": 123,
      "transferredCalls": 123,
      "containmentRate": 123,
      "transferRate": 123,
      "answerRate": 123,
      "capturedCalls": 123,
      "avgTicketUsd": 123,
      "recoveredRevenueUsd": 123,
      "businessHoursAnswered": 123,
      "businessHoursTotal": 123,
      "afterHoursAnswered": 123,
      "afterHoursTotal": 123,
      "businessHoursAnswerRate": 123,
      "afterHoursAnswerRate": 123
    },
    "sentimentTriage": {
      "positiveCount": 123,
      "neutralCount": 123,
      "negativeCount": 123,
      "frustratedCount": 123,
      "scoredCalls": 123,
      "worstCalls": [
        {
          "conversationId": "<string>",
          "sentimentScore": 123,
          "summary": "<string>",
          "startedAt": "2023-11-07T05:31:56Z"
        }
      ]
    },
    "topTopics": [
      {
        "clusterId": "<string>",
        "label": "<string>",
        "volume": 123,
        "trendPct": 123,
        "sampleQueries": [
          "<string>"
        ]
      }
    ],
    "knowledgeGapsSummary": {
      "openCount": 123,
      "topGap": "<string>"
    }
  },
  "message": "<string>",
  "errors": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Flowyte secret API key (Authorization: Bearer flowyte_sk_live_…). Scope-gated; is scoped to your organization — a key can never reach another tenant. The listed scopes in each operation's apiKey requirement are the scopes that key must hold. The tokenUrl is nominal: keys are minted in the dashboard.

Path Parameters

agentId
string
required

Query Parameters

from
string<date-time>
to
string<date-time>
channel
enum<string>
Available options:
voice,
chat
avgTicketCents
integer

The customer's average ticket in integer cents (drives recoveredRevenueUsd). Takes precedence over avgTicketUsd.

Required range: x >= 0
avgTicketUsd
number

The customer's average ticket in dollars (used when avgTicketCents is absent).

Required range: x >= 0

Response

Analytics.

success
boolean
required
data
object
required

Post-call analytics. Includes answerStats — the answer-rate summary (missed/answered + after-hours split + captured count + recovered revenue, with the avg-ticket math).

message
string
errors
object[]