Skip to main content

Searchable recording and transcript library (QA)

Finding the call a QA review needs used to mean scrubbing audio by hand. The recording library gives reviewers one unified surface across every recordable channel — SIP/SBC calls, AI agents, browser softphone, conferences, video rooms, chat, email, social, and messaging — and folds three facts into every row so the hit list is the QA worklist:
  1. The recording itself — classification, duration, and link back to the call, conference, video room, or conversation.
  2. The finalised, diarised transcript — per-turn speaker segments, searched by case-insensitive substring match on q. Only the finalised segments are indexed, so partial or still-processing transcription rows never produce phantom hits.
  3. The linked QA verdict — the latest evaluation’s total score and provenance (AI auto-scored or human-reviewed) plus the recording QC verdict (passed / failed / pending / skipped) and its failed-check count.
That combination lets a reviewer answer a full worklist question in one request: “Show me recordings where the customer said ‘refund’, scored below 70, QC-failed.” Endpoint: GET /api/v1/quality/recording-library Authentication: API key (X-API-Key) or session JWT; inbox:read scope. Roles: owner, admin, or supervisor. Agents are deliberately excluded: the library surfaces transcript content and QA scores across all agents, which makes it a reviewer surface rather than a self-service one — the same boundary the evaluation-scorecard API enforces.

Filters

All filters are optional and AND-combined. An out-of-range filter value returns 422 (API key) or 400 (session). A malformed cursor returns 400 INVALID_CURSOR.

Response shape

Each item is one recording: its identifiers (call_sid, conference_id, video_room_session_id, conversation_id as applicable), classification, mime_type, duration_seconds, file_size_bytes, started_at, ended_at, transcription_status, qc_status, qc_failed_count, the latest linked evaluation (qa_evaluation_id, qa_form_id, qa_total_score, qa_status, qa_auto_scored, qa_flagged_for_review, qa_agent_id, qa_evaluated_at), and matches — the top transcript fragments when q was passed, each with start_ms, channel, and text. matches is an empty array by contract when no q was supplied.

How transcript matching works

When you pass q, the API compares it case-insensitively as a substring against the finalised diarised segments of the recordings the page returns. Two details shape what matches contains: Wildcards search literally. % and _ in the query are escaped before matching, so q=100% looks for the percent sign itself instead of acting as a pattern wildcard. The scan window is bounded. For each response page the API reads matching finalised segments in chronological order, earliest start_ms first, and stops at 200 segments, the controller’s MATCH_SEGMENT_SCAN_LIMIT. Each recording then keeps at most five fragments from that window, ranked full-phrase hit first, then all-terms hit, then any-term hit. In practice:
  • matches is the leading fragments of the conversation, not an exhaustive hit list; a mention spoken after the scan window does not appear.
  • The substring predicate applies before the cap, so a recording with thousands of finalised segments but few hits is fully covered. The window bites when the page’s recordings together hold more than 200 matching segments, and it is shared across the page, so a smaller page (limit=10 instead of the default 25) gives each hit a larger share of the window.
  • The cap guards request memory against pathological long recordings; it is not a relevance judgement.
To audit every mention in one recording, export the full transcript with GET /api/v1/recordings/{id}/transcript/export?format=vtt|srt and search the exported file; the export is not subject to the scan window.

Keyset pagination

List responses order newest-first and use an opaque cursor: read next_cursor from the response and pass it back as cursor until the response returns null (no more rows). Keyset pagination keeps page depth constant — equivalent pages take the same time at row 10,000 as at row 10, unlike offset pagination, and it never duplicates rows when a new recording lands between requests. The cursor encodes the sort key only (no filter state), so it’s safe to persist; it will not survive being edited by hand.

Sibling surfaces — which search to use

Rate limiting and headers

GET /api/v1/quality/recording-library sits in the platform’s authenticated-read limiter: 120 requests per minute, keyed per tenant. Every caller authenticated for the same tenant shares one budget, so a polling pipeline and an interactive dashboard session draw from the same 120/min. Successful responses carry the remaining budget on the X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-RateLimit-Bucket: auth-read headers. When the budget is exhausted the API answers 429 with error.retry_after (whole seconds) in the body and the same value in the Retry-After header:
For a polling QA pipeline: read next_cursor until it is null before pausing, keep limit at 100 while draining (fewer requests per row), wait retry_after seconds before resuming, and spread pollers across tenants rather than stacking them on one key. A practical budget check: pages-per-run × pollers × polls-per-minute should stay under 120 per tenant.

Console crosswalk

The dashboard ships this endpoint as the Recording Library at Quality → Recordings. If you hold the console open while scripting against the API, here is how its controls map: The console deliberately exposes only a subset of the API: classification, transcription_status, qc_status, min_score / max_score, and since / until filter the list over the API only. For playback, transcript drill-in, and grading while you listen, continue in Play, search, and grade recordings from the Recording Library.

End-to-end examples

Search transcripts for “refund”, QC-failed, scored below 70:
List AI-auto-scored evaluations under 70 — the flag-and-review triage queue, without a transcript search:
Paginate with the keyset cursor:

Empty and edge behaviour

A tenant with no recordings gets a 200 with items: [] and next_cursor: null — an empty page, never a 404. A recording whose transcript pipeline failed or is still queued simply carries its transcription_status; it stays listable (with matches: []) and filterable by status. QC verdicts ride the tenant’s own post-finalize recording QC pipeline — tenant-configured, always scoped to the calling tenant.