API reference

Performance

The contact centre's performance figures, as the Performance page shows them: an overview of a period, the figures per agent (people and AI agents), a period summary for one agent, teams side by side, and the quality reviews of conversations. Every read honours the account's performance privacy setting: figures it does not show per person are left out here too, with a notice saying so. 8 endpoints. Add your API key in the authentication panel to send test requests from this page.

Read the figures per agent

GET/api/external/v1/performance/agents

The Performance table: one row per agent (people and AI agents) who worked in the window, with agentKey, agentId, name, kind (AI, HUMAN, or UNLINKED for a name from an imported archive), conversations (and per source), totalDurationSeconds, averageDurationSeconds, firstAt, lastAt and metrics (the measures asked for, each with its value and sample count). page from 0, size up to 100 (default 50).

Parameters: from, to, sources and the imported-recording filters as in the overview; kinds (AI, HUMAN, UNLINKED), metrics (measure keys from /performance/metrics), search (a part of a name), sortBy (a measure key, name, conversations ...) and ascending. With scorecardId every row is also scored against that quality scorecard (scored: {row, scorecard}), its measures fetched whether asked for or not.

Answers {items, totalItems, page, size, teams, from, to, privacyNotice, suppressedAgents, aggregated}: teams maps an agent key to its team; under the account's privacy setting people below its thresholds are left out (suppressedAgents) or the table is one combined row (aggregated), and privacyNotice says so.

Parameters

  • fromstringquery
  • tostringquery
  • sourcesarray of stringquery
  • kindsarray of stringquery

    AI, HUMAN and/or UNLINKED.

  • metricsarray of stringquery

    Measure keys to compute.

  • scorecardIdstring (uuid)query

    A quality scorecard to score every row with.

  • searchstringquery
  • jobIdstring (uuid)query
  • projectstringquery
  • stagestringquery
  • goalstringquery
  • directionstringquery
  • tagsarray of stringquery
  • sortBystringquery
  • ascendingbooleanquery
  • pageinteger (int32)query
  • sizeinteger (int32)query

Responses

  • 200OK

Read one agent's period summary

GET/api/external/v1/performance/agents/summary

One agent's figures per period (week: the last 7 days, month: 30, quarter: 3 months), each with periodId, label, from, to, conversations (and per source), averageDurationSeconds, metrics, and the same window before it (previousMetrics, previousConversations, previousAverageDurationSeconds) to compare with.

Parameters: agentKey (required: a row's agentKey from the agents table), sources, metrics.

Answers {items}.

Errors: 400 MISSING_FIELD without agentKey; 403 INDIVIDUAL_DETAIL_HIDDEN when the account's performance privacy setting shows no one person's own figures.

Parameters

  • agentKeystringquery

    The agent's key, as the agents table gives it.

  • sourcesarray of stringquery
  • metricsarray of stringquery

Responses

  • 200OK

List the measures of a period

GET/api/external/v1/performance/metrics

The measures the account's conversation analysis produced in the window (the keys the agents table and the team comparison take in metrics), each {key, valueType, samples, observedMin, observedMax, direction}; direction says whether higher is better (HIGHER_BETTER, LOWER_BETTER, NEUTRAL).

Parameters: from, to, sources as in the overview.

Answers {items}.

Parameters

  • fromstringquery
  • tostringquery
  • sourcesarray of stringquery

Responses

  • 200OK

Read a period's overview

GET/api/external/v1/performance/overview

What the Performance page shows first for a window: metrics (the measures the analysis produced in it, each {key, valueType, samples, observedMin, observedMax, direction}), categories (the classifications found, with their values), hourly and daily (when the conversations happened) and coverage (how many of them were analysed), with the from/to actually used.

Parameters: from, to (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS; 90 days back to tomorrow by default), sources (CALL, TRANSCRIPTION, CHAT; all by default), and the imported-recording filters jobId, project, stage, goal, direction, tags (any of them narrows to imported recordings).

Parameters

  • fromstringquery

    Start: a date or a local date-time.

  • tostringquery

    End: a date or a local date-time.

  • sourcesarray of stringquery

    CALL, TRANSCRIPTION and/or CHAT.

  • jobIdstring (uuid)query
  • projectstringquery
  • stagestringquery
  • goalstringquery
  • directionstringquery
  • tagsarray of stringquery

Responses

  • 200OK

List quality reviews

GET/api/external/v1/performance/quality-reviews

Conversations drawn for a quality review against a scorecard: status PENDING (default; the queue, oldest first), COMPLETED, or ALL (newest first). page from 0, size up to 100 (default 25).

Each item: id, scorecardId, source and rowId (the conversation), agentKey, occurredAt, aiScore, aiCriteria, aiAutoFailed, status, reviewerUserId, humanScore, humanCriteria, humanAutoFailed, notes, assignedAt, completedAt.

Answers {items, totalItems, page, size, pending} (pending: reviews still waiting).

Parameters

  • statusstringquery

    PENDING (default), COMPLETED or ALL.

  • pageinteger (int32)query
  • sizeinteger (int32)query

Responses

  • 200OK

Read a quality review

GET/api/external/v1/performance/quality-reviews/{reviewId}

One quality review with the fields of the list.

Errors: 404 QUALITY_REVIEW_NOT_FOUND.

Parameters

  • reviewIdstring (uuid)pathRequired

Responses

  • 200OK

List performance teams

GET/api/external/v1/performance/teams

The account's performance teams, each {id, name, description, color, members} with members the agent keys on the team (as the agents table keys them).

Answers {items}.

Responses

  • 200OK

Compare teams over a period

GET/api/external/v1/performance/teams/comparison

Every team's figures over one window side by side, with an Unassigned row so the parts add up to the whole: each row has the team, its agent count, conversations and the measures asked for.

Parameters: from, to, sources as in the overview; kinds (AI, HUMAN, UNLINKED) and metrics as in the agents table.

Answers {items, suppressedTeams, privacyNotice, from, to}: a team smaller than the account's privacy minimum is left out and counted in suppressedTeams.

Parameters

  • fromstringquery
  • tostringquery
  • sourcesarray of stringquery
  • kindsarray of stringquery
  • metricsarray of stringquery

Responses

  • 200OK