Languages: every operation supports cURL, Node.js (TypeScript), Python, Go, Ruby, and PHP. The first 15 operations on this page show all six languages; the remaining 22 show cURL and TypeScript — the two most-used.
Quality API
Quality endpoints exposed by the Devotel CPaaS API Base path:/api/v1/quality
Endpoint count: 35
QA score trend series
GET /api/v1/quality/trendsGET /quality/summary. Self-evaluations (an agent scoring their own call) and appealed/resolved rows are excluded so only current official scores drive the trend. Read-only; requires an owner, admin, or supervisor role.
Look-back window in days over each evaluation’s creation time (1-90). Defaults to 30, capped at 90; an out-of-range or non-numeric value falls back to 30.
Restrict the trend to a single scorecard form (rubric) id from /quality/evaluation-forms. Defaults to every form; an over-long value falls back to all forms.
Drill the whole trend into one evaluated agent’s scores. Defaults to every agent; an over-long value falls back to all agents.
Worked request and response samples
Copy the request as written, substitute your own ids, and compare the response envelope — a success in the same shape the numbered error sections spell out.Open a calibration session
GET /api/v1/quality/calibrationsList auto-qa-readiness
GET /api/v1/quality/auto-qa-readinessAI auto-QA coverage rollup
GET /api/v1/quality/autoscore-coverageList calibration sessions
GET /api/v1/quality/calibrationsGet a calibration session
GET /api/v1/quality/calibrations/{id}Get the calibration agreement report
GET /api/v1/quality/calibrations/{id}/reportPer-agent coaching cards
GET /api/v1/quality/coaching-cardsLook-back window in days over each evaluation’s creation time (1–90). Defaults to 30, capped at 90; an out-of-range or non-numeric value falls back to 30.
Restrict the rollup to one agent. Defaults to every evaluated agent (or only the caller themselves for a non-reviewer user). An over-long value falls back to the all-agents view.
Max agent cards returned (1–50). Defaults to 50, clamped to 50; an out-of-range or non-numeric value falls back to 50.
List coaching-rules
GET /api/v1/quality/coaching-rulesCompliance-flagged QA evaluations queue
GET /api/v1/quality/compliance-flagsflagged_for_review bit is set — the auto-scorer’s below-threshold signals that need supervisor resolution. Reviewer scope (owner / admin / supervisor) may inspect any agent’s flags; a non-reviewer agent only ever sees their own. Read-only.
Look-back window in days over the evaluation’s creation time (1–90). Defaults to 30, capped at 90; an out-of-range or non-numeric value falls back to 30.
Restrict the queue to one agent. Defaults to every evaluated agent (or only the caller for non-reviewer users). An over-long value falls back to all agents.
Max flagged rows returned (1–100). Defaults to 50, clamped to 100; an out-of-range or non-numeric value falls back to 50.
Per-criterion QA driver averages
GET /api/v1/quality/driversLook-back window in days over each evaluation’s creation time (1–90). Defaults to 30, capped at 90; an out-of-range or non-numeric value falls back to 30.
Restrict the rollup to a single scorecard form (rubric) id from /quality/evaluation-forms. Defaults to every form; an over-long value falls back to all forms.
Drill the driver rollup into one evaluated agent’s scores. Defaults to every agent; an over-long value falls back to all agents.
List evaluation forms
GET /api/v1/quality/evaluation-formsis_active to show only live rubrics, and cap the page size with limit. Reviewer scope (owner / admin / supervisor).
Get an evaluation form
GET /api/v1/quality/evaluation-forms/{id}List evaluations
GET /api/v1/quality/evaluationsevaluation_type and any linked CSAT score for the same call.
Compare self vs reviewer scores for a call
GET /api/v1/quality/evaluations/variancevariance between them for a single call — the calibration gap that surfaces where an agent over- or under-rates their own work. call_id is required; un-graded auto-sampled / CSAT placeholder rows are excluded from the reviewer side. A non-reviewer agent only ever sees their own variance, while reviewer scope (owner / admin / supervisor) may pass agent_id to inspect any agent.
Per-evaluator QA assignment workload
GET /api/v1/quality/evaluations/workloadevaluator_id. Reviewer scope (owner / admin / supervisor).
Get gamification config defaults
GET /api/v1/quality/gamification/configGet my gamification card
Need this flow in Python, Go, Ruby, or PHP? The Worked sequences section renders this surface’s hero flows in the full six-language group.
GET /api/v1/quality/gamification/meperiod (defaults to week). The rank is computed against the full org roster with the DEFAULT ruleset, identical to the supervisor default board, so an agent’s rank can never disagree with the supervisor view; only the caller’s own slice is returned, never another agent’s identity. Any authenticated agent scope: reviewer-scope roles (owner / admin / supervisor) may pass agent_id to inspect another agent, while a non-reviewer asking for someone else’s card gets a 403.
Search the post-call recording/transcript library
GET /api/v1/quality/recording-libraryq. Reviewer scope (owner / admin / supervisor) because both transcript content and cross-agent QA scores are surfaced.
Org-wide quality-management summary
GET /api/v1/quality/summaryLook-back window in days over each outcome’s evaluation time (1–90). Defaults to 30, capped at 90; an out-of-range or non-numeric value falls back to 30.
Restrict the rollup to a single conversation channel —
inbox, voice, or all for both. Defaults to all; any unrecognised value falls back to all.Org-wide QA score trend series
GET /api/v1/quality/trendsLook-back window in days over each evaluation’s creation time (1–90). Defaults to 30, capped at 90; an out-of-range or non-numeric value falls back to 30.
Restrict the trend to a single scorecard form (rubric) id from /quality/evaluation-forms. Defaults to every form; an over-long value falls back to all forms.
Drill the whole trend into one evaluated agent’s scores. Defaults to every agent; an over-long value falls back to all agents.
Create a calibration session
POST /api/v1/quality/calibrationsClose a calibration session
POST /api/v1/quality/calibrations/{id}/closeSubmit a blind calibration score
POST /api/v1/quality/calibrations/{id}/scorestotal_score is re-derived server-side from the form weights; clients cannot supply it. The session must be open and you must be an invited reviewer. Reviewer scope (owner / admin / supervisor).
Map of criterion_id → raw score (0–100). The server re-derives the weighted total against the form definition.
Create an evaluation form
POST /api/v1/quality/evaluation-formssample_rate_pct above 0 to have the auto-sampler queue a share of each agent’s calls for review. Reviewer scope (owner / admin / supervisor).
Create an evaluation
POST /api/v1/quality/evaluationsscores (criterion id → 0..100); the server re-derives the weighted total_score from the form so clients cannot inflate the rollup. The row lands pending for the agent to acknowledge or appeal. Reviewer scope (owner / admin / supervisor).
Acknowledge an evaluation
POST /api/v1/quality/evaluations/{id}/acknowledgepending to acknowledged. Only the agent named on the evaluation may acknowledge it; already-acknowledged rows are idempotent. No request body.
Appeal an evaluation
POST /api/v1/quality/evaluations/{id}/appealappealed for a supervisor to resolve. Only the agent named on the evaluation may appeal, and only while it is pending or acknowledged.
Claim and score an auto-queued evaluation
POST /api/v1/quality/evaluations/{id}/claim-scorescores. The server re-derives total_score from the form weights and stamps the reviewer as the author; status stays pending so the agent’s acknowledge/appeal flow proceeds on a real score. Human-authored rows cannot be claimed. Reviewer scope (owner / admin / supervisor).
Override an AI-scored evaluation
POST /api/v1/quality/evaluations/{id}/overridescores with their own. The server re-derives total_score from the form weights, stamps the reviewer as the author, and clears the review flag. Only a pending, auto-scored row may be overridden — human-authored or already-corrected evaluations return 409. Reviewer scope (owner / admin / supervisor).
Reassign an open evaluation to a different evaluator
POST /api/v1/quality/evaluations/{id}/reassignassignee_id — workload rebalancing. Only an unscored pending row may be reassigned (409 INVALID_STATE otherwise); the new assignee is subject to the same per-evaluator quota as POST /evaluations/assign. Reviewer scope (owner / admin / supervisor).
Resolve an appealed evaluation
POST /api/v1/quality/evaluations/{id}/resolveappealed to resolved with an optional resolution note. Resolving closes the appeal; it does NOT regrade the call (total_score is left untouched). Only an appealed evaluation may be resolved. Reviewer scope (owner / admin / supervisor).
Assign a QA evaluation to a specific evaluator
POST /api/v1/quality/evaluations/assigncall_id against form_id, naming assignee_id as the reviewer. Rejects with 409 QUOTA_EXCEEDED if the assignee already holds the tenant’s per-evaluator open-assignment cap, and 409 ALREADY_ASSIGNED if the call already has an open (unscored) row. The row lands pending/unscored — the assignee fills in scores via the existing claim-score flow. Reviewer scope (owner / admin / supervisor).
Create a self-evaluation
POST /api/v1/quality/evaluations/selfscores (criterion id → 0..100); the server re-derives the weighted total_score from the form so the rollup cannot be inflated. The handler always stamps agent_id = reviewer_id to the caller, so an agent can only ever self-evaluate their own work, and the row lands acknowledged (no reviewer sign-off needed). Any authenticated agent scope.
Compute the agent leaderboard
POST /api/v1/quality/gamification/leaderboardqueue_id or an explicit agent_ids allow-list, and override point_rules / badge_definitions to preview a tuned ruleset before adopting it. Supervisors are limited to their mapped queues. Reviewer scope (owner / admin / supervisor).
Compute a weighted supervisor scorecard
POST /api/v1/quality/scorecards/compositeperiod (day|week|month) or an explicit from/to ISO pair; restrict to a team with queue_id or an explicit agent_ids allow-list. Supervisors are limited to their mapped queues. Reviewer scope (owner / admin / supervisor).
Update an evaluation form
PATCH /api/v1/quality/evaluation-forms/{id}is_active, or change sample_rate_pct. Only the fields you send are changed; at least one field is required. Reviewer scope (owner / admin / supervisor).