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
/api/external/v1/performance/agentsThe 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
fromstringquerytostringquerysourcesarray of stringquerykindsarray of stringqueryAI, HUMAN and/or UNLINKED.
metricsarray of stringqueryMeasure keys to compute.
scorecardIdstring (uuid)queryA quality scorecard to score every row with.
searchstringqueryjobIdstring (uuid)queryprojectstringquerystagestringquerygoalstringquerydirectionstringquerytagsarray of stringquerysortBystringqueryascendingbooleanquerypageinteger (int32)querysizeinteger (int32)query
Responses
200OK
Read one agent's period summary
/api/external/v1/performance/agents/summaryOne 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
agentKeystringqueryThe agent's key, as the agents table gives it.
sourcesarray of stringquerymetricsarray of stringquery
Responses
200OK
List the measures of a period
/api/external/v1/performance/metricsThe 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
fromstringquerytostringquerysourcesarray of stringquery
Responses
200OK
Read a period's overview
/api/external/v1/performance/overviewWhat 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
fromstringqueryStart: a date or a local date-time.
tostringqueryEnd: a date or a local date-time.
sourcesarray of stringqueryCALL, TRANSCRIPTION and/or CHAT.
jobIdstring (uuid)queryprojectstringquerystagestringquerygoalstringquerydirectionstringquerytagsarray of stringquery
Responses
200OK
List quality reviews
/api/external/v1/performance/quality-reviewsConversations 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
statusstringqueryPENDING (default), COMPLETED or ALL.
pageinteger (int32)querysizeinteger (int32)query
Responses
200OK
Read a quality review
/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
/api/external/v1/performance/teamsThe 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
/api/external/v1/performance/teams/comparisonEvery 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
fromstringquerytostringquerysourcesarray of stringquerykindsarray of stringquerymetricsarray of stringquery
Responses
200OK