Quality
Quality review cases, evaluations, coaching and sales quality.
Set up and run reviews
Publish a scorecard and point the campaign at it.
POSTPublish a scorecardPUTSave quality settings for a campaign
Work the queue.
Score the call and coach the agent.
On this page
Review queue
Review recordings
Scorecards and setup
List quality reviews
GET/v1/tenants/{tenantSlug}/qms
Returns one page of the quality review queue (50 reviews, newest first) with queue totals in report. Page with offset while hasMore is true. For managers the response also carries the scorecards, per-campaign settings, campaigns and eligible reviewers; for other roles those lists are empty. The acting member needs a quality role. Managers see every review; reviewers see the reviews assigned to them; agents see only their own submitted reviews.
Query parameters
campaignIdOnly reviews of this campaign.
statusreviewed: submitted reviews only;pending: everything else.offsetNumber of reviews to skip. Pages hold 50 reviews.
Responses
One page of reviews.
roleThe acting member's quality role. It decides which reviews
itemsholds and whether the setup lists (cards,settings,campaigns,reviewers) are filled: only forMANAGER.itemsThe records in this response, in the documented order.
hasMoretruewhen another page follows.cardsScorecards.
settingsQuality settings per campaign.
campaignsCampaigns the viewer can see.
reviewersMembers who can review.
reportTotals for the period.
analysisConfiguredWhether automatic analysis is set up.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Get a quality review
GET/v1/tenants/{tenantSlug}/qms/cases/{id}
Returns one review: the call, the scorecard it is scored against, automatic analysis (transcript, metrics and suggested scores) when available, evaluations and coaching tasks. Use item.revision as expectedRevision when you change the review. The acting member needs a quality role. Managers see every review; reviewers see the reviews assigned to them; agents see only their own submitted reviews.
Path parameters
idQuality review ID.
Responses
The review.
itemThe review case.
cardScorecard used.
analysisAutomatic analysis;
nullif not run.evaluationsReviews of the call, newest first.
coachingCoaching tasks from this review.
manifestThe call's recording manifest saved with the review; null without recording access.
canReviewWhether the viewer may review the call.
canManageWhether the viewer may manage scorecards and settings.
wrapUpThe agent's wrap-up of the call, or null.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thequality.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
Assign a quality review
PUT/v1/tenants/{tenantSlug}/qms/cases/{id}/assignment
Assigns the review to a reviewer (a member who can evaluate), or unassigns it with reviewerId: null. Needs a quality manager. Send the review's current revision (from Get a quality review) as expectedRevision. If the review changed in the meantime the request fails with 409: read it again and retry.
Path parameters
idQuality review ID.
Request body (application/json)
reviewerIdReviewer's user ID;
nullunassigns.expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.
Responses
The quality review after the change.
itemThe review case.
cardScorecard used.
analysisAutomatic analysis;
nullif not run.evaluationsReviews of the call, newest first.
coachingCoaching tasks from this review.
manifestThe call's recording manifest saved with the review; null without recording access.
canReviewWhether the viewer may review the call.
canManageWhether the viewer may manage scorecards and settings.
wrapUpThe agent's wrap-up of the call, or null.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
Request automatic analysis
POST/v1/tenants/{tenantSlug}/qms/cases/{id}/analysis
Queues automatic analysis of the call: transcription, talk-time metrics and suggested scores against the scorecard. Analysis runs in the background; poll Get a quality review until item.analysisStatus is COMPLETED or FAILED.
If analysis is already queued, running or completed, nothing is queued again and the current state is returned. Needs a reviewer or manager with recording access.
The response is { id, state }. Returns 503 while quality evidence encryption is not configured for the workspace.
Path parameters
idQuality review ID.
Responses
Analysis is queued or already done: { id, state }.
idID of the quality review.
stateQUEUEDwhen just requested; otherwise the analysis already under way or done.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- A service this operation depends on is temporarily unavailable; retry with backoff.
Submit an evaluation
POST/v1/tenants/{tenantSlug}/qms/cases/{id}/evaluations
Scores the call against the review's scorecard, one entry per parameter. With submit: false the evaluation is saved as a draft and the review stays in review; with submit: true the review becomes REVIEWED, its score and critical-failure flag are set, and every score needs a reason.
Evidence (evidenceSegmentIds, evidenceStartMs, evidenceEndMs) must point into the call's transcript and duration. Scores above a parameter's maxScore or unknown parameters return 400.
Send the review's current revision (from Get a quality review) as expectedRevision. If the review changed in the meantime the request fails with 409: read it again and retry.
requestId is a UUID you generate per submission. Retrying with the same requestId and the same body returns the current review without saving twice; the same requestId with a different body returns 409. Returns 503 while quality evidence encryption is not configured for the workspace.
Path parameters
idQuality review ID.
Request body (application/json)
requestIdA UUID you create for this submission. Resend the same one to retry safely; a new submission needs a new one.
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.submittrueto submit the evaluation;falsesaves a draft.scoresScore for each parameter.
notesFree-text notes.
Responses
The quality review after the change.
itemThe review case.
cardScorecard used.
analysisAutomatic analysis;
nullif not run.evaluationsReviews of the call, newest first.
coachingCoaching tasks from this review.
manifestThe call's recording manifest saved with the review; null without recording access.
canReviewWhether the viewer may review the call.
canManageWhether the viewer may manage scorecards and settings.
wrapUpThe agent's wrap-up of the call, or null.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- The change conflicts with the record's current state or a workflow rule;
error.codenames it. - A service this operation depends on is temporarily unavailable; retry with backoff.
Get a review's recording manifest
GET/v1/tenants/{tenantSlug}/qms/cases/{id}/manifest
Lists the recordings of the reviewed call, grouped into recording sets, with each artifact's id, type, format, length and whether it is playable. Use a playable artifact's id with Download a review recording. The acting member needs recording access. Returns 503 when recording playback is unavailable.
Path parameters
idQuality review ID.
Responses
The recording manifest. Its fields are snake_case, as the call recorder writes them.
schema_versionManifest format version.
call_idID of the call.
call_stateState of the call when the manifest was built, for example
COMPLETED.generated_atWhen the manifest was built (ISO 8601).
setsRecording sets, one per call attempt.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thequality.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- A service this operation depends on is temporarily unavailable; retry with backoff.
Download a review recording
GET/v1/tenants/{tenantSlug}/qms/cases/{id}/recordings/{recordingId}/content
Streams the audio of a recording listed in the review's manifest. Send a single Range: bytes=… header to resume a download or seek; the response is then 206 Partial Content. The acting member needs recording access, and each download is recorded in the audit log.
Path parameters
idQuality review ID.
recordingIdRecording ID.
Headers
RangeOne byte range, for example
bytes=0-1048575.
Responses
The whole recording.
Accept-RangesAlwaysbytes.Content-LengthSize of the audio in bytes.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thequality.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.RECORDING_NOT_FOUNDThe recording does not exist or the key cannot see it.- A service this operation depends on is temporarily unavailable; retry with backoff.
Create a coaching task
POST/v1/tenants/{tenantSlug}/qms/cases/{id}/coaching
Creates a coaching task for the agent who handled the call, optionally pointing at an interval of the recording (startMs and endMs both set, or both null). dueAt must be in the future. Needs a quality manager. Calls without an attributed agent return 409.
requestId is a UUID you generate per submission. Retrying with the same requestId and the same body returns the current review without saving twice; the same requestId with a different body returns 409. Returns 503 while quality evidence encryption is not configured for the workspace.
Path parameters
idQuality review ID.
Request body (application/json)
requestIdA UUID you create for this submission. Resend the same one to retry safely; a new submission needs a new one.
titleTitle shown in the LMS.
noteFree-text note.
dueAtWhen it is due (ISO 8601).
startMsStart, in milliseconds.
endMsEnd, in milliseconds.
Responses
The review with the new task.
itemThe review case.
cardScorecard used.
analysisAutomatic analysis;
nullif not run.evaluationsReviews of the call, newest first.
coachingCoaching tasks from this review.
manifestThe call's recording manifest saved with the review; null without recording access.
canReviewWhether the viewer may review the call.
canManageWhether the viewer may manage scorecards and settings.
wrapUpThe agent's wrap-up of the call, or null.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- The change conflicts with the record's current state or a workflow rule;
error.codenames it. - A service this operation depends on is temporarily unavailable; retry with backoff.
Acknowledge or complete a coaching task
PUT/v1/tenants/{tenantSlug}/qms/cases/{id}/coaching/{taskId}
Moves a coaching task forward: the coached agent acknowledges an OPEN task (ACKNOWLEDGED), then a quality manager completes it (COMPLETED). Send the task's current revision as expectedRevision; a stale revision, or a task not in the expected state, returns 409.
Path parameters
idQuality review ID.
taskIdCoaching task ID.
Request body (application/json)
stateCurrent state of the coaching task.
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.
Responses
The quality review after the change.
itemThe review case.
cardScorecard used.
analysisAutomatic analysis;
nullif not run.evaluationsReviews of the call, newest first.
coachingCoaching tasks from this review.
manifestThe call's recording manifest saved with the review; null without recording access.
canReviewWhether the viewer may review the call.
canManageWhether the viewer may manage scorecards and settings.
wrapUpThe agent's wrap-up of the call, or null.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
Publish a scorecard
POST/v1/tenants/{tenantSlug}/qms/scorecards
Publishes a new scorecard version for a campaign. Each parameter has a unique id, the instruction reviewers (and automatic scoring) follow, the evidence source and a maximum score. A failed critical parameter flags the whole review as a critical failure.
Scorecards are immutable: publishing again creates the next version. A new version is not used until you point the campaign at it with Save quality settings for a campaign (its id is the settings' scorecardId). Needs a quality manager with scorecard management access.
requestId is a UUID you generate per submission. Retrying with the same requestId and the same body returns the current review without saving twice; the same requestId with a different body returns 409.
Request body (application/json)
requestIdA UUID you create for this submission. Resend the same one to retry safely; a new submission needs a new one.
campaignIdID of the campaign.
titleTitle shown in the LMS.
parametersParameters on the scorecard, in order.
Responses
The published scorecard.
idID of the scorecard.
campaignIdID of the campaign.
titleTitle shown in the LMS.
versionVersion number.
parametersParameters on the scorecard, in order.
createdAtWhen it was created (ISO 8601).
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
Save quality settings for a campaign
PUT/v1/tenants/{tenantSlug}/qms/settings
Turns quality review on or off for a campaign, picks the scorecard version (which must belong to the same campaign, otherwise 400), whether new calls are analysed automatically, and the default reviewer.
Send the settings' current revision (0 the first time; see settings in List quality reviews) as expectedRevision; a stale revision returns 409. Enabling review returns 503 while quality evidence encryption is not configured.
The response is { campaignId, revision } with the new revision.
Request body (application/json)
campaignIdID of the campaign.
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.enabledWhether it is turned on.
autoAnalyzeAnalyse new recordings automatically.
scorecardIdID of the scorecard.
defaultReviewerIdID of the default reviewer;
nullif none.
Responses
The settings were saved: { campaignId, revision }.
campaignIdID of the campaign.
revisionThe settings' new revision.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The change conflicts with the record's current state or a workflow rule;
error.codenames it. - A service this operation depends on is temporarily unavailable; retry with backoff.
Get sales quality for a campaign
GET/v1/tenants/{tenantSlug}/lms/sales/{campaignId}
Returns the campaign's sales funnel from human calling (calls, contacted, qualified, appointment and converted leads), the sales policy that maps call dispositions to funnel stages, and open escalations for overdue follow-ups. Needs calling management permission.
Path parameters
campaignIdCampaign ID.
Responses
Sales quality.
dispositionsCampaign dispositions.
managersSales managers.
campaignIdID of the campaign.
policySales stage policy.
callsCalls in the period.
contactedLeadsLeads reached.
qualifiedLeadsLeads that reached a qualified disposition.
appointmentLeadsLeads with an appointment disposition.
convertedLeadsLeads converted.
escalationsEscalations raised.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thequality.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
Save a campaign's sales policy
PUT/v1/tenants/{tenantSlug}/lms/sales/policy
Maps the campaign's active call dispositions to funnel stages (QUALIFIED, APPOINTMENT, CONVERTED), each disposition at most once, and sets when an open follow-up counts as overdue and who receives the escalation (an active member with calling management permission, or null).
Inactive or unknown dispositions, or an ineligible owner, return 400. Send the policy's current revision (policy.expectedRevision from Get sales quality for a campaign, 0 the first time) as expectedRevision; a stale revision returns 409. Campaigns without calling configured return 404.
Request body (application/json)
campaignIdID of the campaign.
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.overdueMinutesOverdue, in minutes.
escalationOwnerIdID of the escalation owner;
nullif none.stagesLead stage to set for each disposition.
Responses
Sales quality after the change.
dispositionsCampaign dispositions.
managersSales managers.
campaignIdID of the campaign.
policySales stage policy.
callsCalls in the period.
contactedLeadsLeads reached.
qualifiedLeadsLeads that reached a qualified disposition.
appointmentLeadsLeads with an appointment disposition.
convertedLeadsLeads converted.
escalationsEscalations raised.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
Acknowledge a follow-up escalation
POST/v1/tenants/{tenantSlug}/lms/sales/escalations/{id}/acknowledge
Marks an open escalation for an overdue follow-up as acknowledged. Send the escalation's current revision as expectedRevision; a stale revision, or an escalation that is no longer open, returns 409. The response is { id }.
Path parameters
idEscalation ID.
Request body (application/json)
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.
Responses
The escalation was acknowledged: { id }.
idID of the escalation.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thequality.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
- The change conflicts with the record's current state or a workflow rule;
error.codenames it.