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 13 show cURL and TypeScript — the two most-used.
Recordings API
Recordings endpoints exposed by the Devotel CPaaS API Base path:/api/v1/recordings
Endpoint count: 26
title: “Worked samples + errors worth branching on” description: “Request/response samples for the parts of the recording surface callers actually drive — list, fetch, conversation view, BYO storage, tenant-owned retention, QC scoring, view analytics, and the legal-hold lifecycle — plus the failure templates those routes return.”
Errors worth branching on
These failures cover the recording playback read (GET /api/v1/voice/calls//recording), hammered by every call-detail view and player. Each block below is a full{ error, meta } envelope as the API returns it, and the matrix at the bottom answers retry vs surface for the same classes, including the expired-recording case. For the platform-wide decision table these branches plug into, see the error handling guide.
401 — Unauthorized
401 on this page is the bearer key failing before the route ran — it never means the resource is wrong. Rotate the key or re-mint the scoped token; retrying the same request changes nothing.
403 — Forbidden
403 means the key authenticated but the operation is gated by scope — check the key’s scopes on the developer page; a 403 is never a data-not-found shape.
422 — Schema
422 means the payload did not match the request schema — branch on error.details.field and check the call row for recording_id with a GET first, then fetch the file endpoint instead of blind-retrying the same body.
429 — Rate
Retry-After header and error.details.retry_after are both set on every 429 — resend the SAME request after the lower of the two.
404 — Not found
404 — Expired
not-ready 404 above says “retry with backoff.” This one says “gone” — the tenant’s retention sweep has already deleted the media. Stop retrying; the only recovery is raising the retention window before the next sweep runs, or exempting the recording with a legal hold before the window closes.
60-second retry matrix
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. The samples cover the full playback path, in the order a call-detail view walks it: list → fetch → conversation scope → BYO delivery → retention posture.1. List recordings for a call
GET /api/v1/voice/callsrecording_url minted on read (never the raw gs:// object path), plus the duration, format, and expiry you can render next to the player.
Request
pagination.cursor until has_more flips false. A call whose uploader is still attaching returns recording_url: null — re-poll after a few seconds rather than branching on the null.
2. Fetch the file
GET /api/v1/voice/calls/{id}/recordingexpires_at epoch-ms tells the UI when the fetch link dies (a re-GET re-mints it).
Request
chapters is non-empty it carries [{ start_ms, end_ms, title, summary }] markers the player renders as click-to-seek headings.
3. Conversation chain
GET /api/v1/recordings/conversation/{conversationId}/legal-holdheld_recordings < total_recordings means at least one row in the chain survives un-protected — hold the whole chain with PUT /api/v1/recordings/conversation/{conversationId}/legal-hold instead of holding the three ids one by one.
4. Ship to BYO storage
POST /api/v1/video/rooms-scheduled (and POST /api/v1/video/rooms-scheduled/{id}/recording/start)recording_storage on room create (or on recording start) and every artifact for that room egresses to the destination you declare; the recording row’s destination then reports the non-secret descriptor so the audit trail answers “where does the file live” without ever storing the key.
Request
s3:PutObject on the destination bucket (and s3:GetObject if your flow re-reads the artifact). Restrict the bucket’s IAM policy to the egress use and let bucket lifecycle rules own retention — Orbit delivers the artifact; expiry and versioning stay with you. The full destination contract (S3, GCS, S3-compatible endpoints, region pinning on Orbit-managed storage) is in the BYO storage guide.
5. Tenant-owned retention posture
PUT /api/v1/settings/retention6. Share a recording
POST /api/v1/recordings/{id}/share{id}.
Request
Per-operation success envelopes (concrete shapes)
Each block below fills what used to render as “data”: on this page — the concrete envelope the matching route returns. These blocks moved here from the generated endpoint file (which regeneration owns) so they survive every splice.Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Worked operator samples — QC score, view analytics, hold lifecycle
The sections above cover the playback and artefact chain; these three continue with the operator side: scoring a recording, the view telemetry your player feeds, and the legal-hold posture the retention sweep reads. Same envelope rules apply —{ data, meta } on success, { error, meta } on failure.
7. Score a recording programmatically
POST /api/v1/recordings/{id}/qc/run (read-back: GET /api/v1/recordings/{id}/qc)recording.qc_failed webhook. Requires the developer role or above and the voice:write scope; GET /{id}/qc only needs voice:read.
Request
qc_status, not on the HTTP status — the run returns 200 whether the verdict is passed or failed; the status-code branches are 404 for an unknown id and 400 for a malformed one. GET /{id}/qc returns the same envelope plus classification (null until scored) and reports qc_status: "pending" for a row that has never been scored, so a dashboard can render “QC not yet run” without treating it as a miss.
8. Views and view analytics
POST /api/v1/recordings/{id}/views · GET /api/v1/recordings/{id}/views/report · POST /api/v1/recordings/{id}/desktop-analyticsviewer_id is an opaque session id your player mints — never an email address or user id — so the telemetry carries no personal data.
Request
200 doubles as the player’s “watching now” badge — no second read needed. Event ingest is best-effort: a backing-store outage returns 503 SERVICE_UNAVAILABLE, never 500; do not block the player on a retry or treat the 503 as a playback failure.
The rollup read is GET /{id}/views/report — the watch-rate figures plus the audience-retention curve (how many viewers reached each percentile of the recording: your drop-off chart) and a bounded per-viewer breakdown:
POST /{id}/desktop-analytics: your desktop agent uploads the raw application-usage segments it captured during the call, and the API derives the report server-side (time-in-application, non-talk split, swivel-chair transitions, automation opportunities). The body carries agent_id plus a segments array; every other field in the response is derived:
200 returns { recording_id, desktop_analytics, desktop_analytics_count } where desktop_analytics is the persisted record shown in full in the per-operation sample above (derived report with applications, top_transitions, automation_opportunities, window). A recording already at the per-recording record limit answers 400 DESKTOP_ANALYTICS_LIMIT_REACHED — that branch means drop or replace your oldest record, not retry.
9. Legal hold lifecycle
PUT /api/v1/recordings/{id}/legal-hold404 above describes. The hold persists until you release it — there is no expiry field and no separate DELETE operation on this surface; releasing is the same PUT with hold: false. Owner/admin role only.
Request
Recording under hold — the branch to code
The hold is a sweep exemption, not a write gate: whilelegal_hold is true, redaction-region writes and share revocation still succeed at the HTTP layer. The branch a compliance integration must code is therefore client-side — gate any destructive call on a GET /{id}/legal-hold read, and treat legal_hold: true as “do not touch until released.” If media under a seal does change, the integrity verify flips to valid: false with mismatched hashes:
hold: false and the next sweep pass may reclaim the row once it is past the window — the expired-404 above resumes applying from that point. Place holds before the window closes, not after the sweep has run.
Worked sequence: use a recording id end-to-end
The blocks above document each operation on its own; this sequence runs one recording,rec_01J8ZC3NPA, through the post-call pipeline in the order a regulated operation usually runs it, matching the post-call pipeline guide. Every response below uses the same { data, meta } envelope as the rest of this page. For the registry reads (list, media, transcript segments) pair this sequence with the /api-reference/recordings surface; once share links go out, pair it with recording view analytics.
1. Confirm the recording exists
GET /api/v1/recordings/{id}status: ready means finalize completed and the media is addressable; while the uploader is still attaching, the fetch returns the RECORDING_FILE_NOT_READY 404 from Errors worth branching on, so retry with backoff instead of treating it as a missing call.
Response
content_url_expires_at is when the signed playback URL lapses; request the row again to mint a fresh one rather than caching it.
2. QC verdict
GET /api/v1/recordings/{id}/qcchecks[].message; failed_count / passed_count summarize the run.
Response
POST /api/v1/recordings/{id}/qc/runrecording.qc_failed webhook, while a pass on an already-passed recording returns the same verdict and emits nothing, which makes the re-run safe to retry.
Response
3. Legal hold + integrity
PUT /api/v1/recordings/{id}/legal-hold"hold": false to release; reason is optional and capped at 512 characters.
Request
POST /api/v1/recordings/{id}/integrity/sealdigest_url, the signed provenance bundle to ship alongside any exported media; GET /api/v1/recordings/{id}/integrity/export-digest downloads it, and GET /api/v1/recordings/{id}/integrity/verify re-hashes the seal on demand.
Response
RECORDING_INTEGRITY_MISSING_CONTENT_HASH; wait for finalize or pass content_sha256 (64-char hex) in the request body.
4. Caption export and clips
GET /api/v1/recordings/{id}/transcript/export?format=vtt&pseudonymize=truepseudonymize=true, email, phone, and long-ID tokens are replaced by [EMAIL], [PHONE], and [ID] before rendering, and X-Pseudonymized-Count reports what was scrubbed; raw output never sets the header.
Request
POST /api/v1/recordings/{id}/clipsmedia_fragment your player appends to the recording URL to seek straight to the window.
Request
POST /api/v1/recordings/{id}/highlights/detectGET /api/v1/recordings/{id}/highlights (the poll URL for later review), promote with POST /api/v1/recordings/{id}/highlights/{momentId}/clip, and drop noise with DELETE /api/v1/recordings/{id}/highlights/{momentId}.
Response
RECORDING_HIGHLIGHT_NOT_TRANSCRIBED.
5. Public share links
POST /api/v1/recordings/{id}/shareexpires_in_seconds for the 7-day default. The examples below request 72 hours.
Request
DELETE /api/v1/recordings/{id}/shareWorked compliance reads — holds, integrity, access, clips, captions
The reads in this section are the evidence trail a QA or audit workflow walks after the call: what is under hold and who placed it, whether sealed media still verifies, who accessed a recording and why, where clip media lives, and how to export captions without personal data. Same envelope rules as the rest of this page:{ data, meta } on success, { error, meta } on failure, with the two failure tabs at the end the branches to code.
10. List legal holds
GET /api/v1/recordings/{id}/legal-hold · apply and release: PUT /api/v1/recordings/{id}/legal-holdscope.recording_ids is the set the hold protects; a hold placed through the conversation write lists every recording in the chain, not just the one you are reading.
Response
PUT with hold: false releases it. A released entry stays in the list with active: false and released_by / released_at set, and from that moment the recording re-enters the age-based sweep on its next pass. Place holds before the retention window closes, not after the sweep has run.
11. Integrity — digest, export bundle, verify
GET /api/v1/recordings/{id}/integrity · GET /api/v1/recordings/{id}/integrity/export-digest · GET /api/v1/recordings/{id}/integrity/verifyverified, not on the HTTP status: a recording whose media no longer matches its seal still answers 200, with verified: false.
Response
digest is the content hash the seal recorded at sealed_at; verified is true only when a fresh hash of the stored media matches it. On mismatch the same envelope returns verified: false with both hashes for your record, matching the mismatch variant shown under Recording under hold above. export-digest downloads the signed provenance bundle (algorithm, digest, seal chain, KMS key fingerprint) to ship alongside any media you hand to counsel or a regulator; the desktop-analytics list read pages the per-recording records documented in section 8 above.
12. View audit rows
GET /api/v1/recordings/{id}/views13. Caption export — pseudonymized VTT head
GET /api/v1/recordings/{id}/transcript/export?format=vtt&pseudonymize=true[EMAIL], [PHONE], [ID], and [REDACTED] elsewhere; X-Pseudonymized-Count reports the scrub tally per class. Without pseudonymize=true the same cues carry the raw values and that header is absent: request the raw variant only where the caller’s consent or your lawful basis covers raw personal data, and treat every raw export as an audit event.
14. Clips with signed playback URLs
GET /api/v1/recordings/{id}/clipsmedia_fragment your player appends to seek into the window.
Response
null rather than breaking the list.
403 / 404 — the two compliance-read failures
- 403 — role gate
- 404 — unknown recording
403 on these reads is the role gate, not a scope typo: a member-role key authenticates fine and still bounces here. Surface it as “an owner must run this read” and do not retry.List clips
GET /api/v1/recordings/{id}/clipsList desktop-analytics
GET /api/v1/recordings/{id}/desktop-analyticsList highlight moments for a recording
GET /api/v1/recordings/{id}/highlightsList integrity
GET /api/v1/recordings/{id}/integrityList export-digest
GET /api/v1/recordings/{id}/integrity/export-digestList verify
GET /api/v1/recordings/{id}/integrity/verifyList legal-hold
GET /api/v1/recordings/{id}/legal-holdList screen-recordings
GET /api/v1/recordings/{id}/screen-recordingsExport a recording transcript as a caption file (pseudonymized optional)
GET /api/v1/recordings/{id}/transcript/export.vtt, default) or SubRip (.srt) caption file, with optional pseudonymization. When pseudonymize=true the transcript is scrubbed (phone / email / long-ID tokens replaced with [PHONE] / [EMAIL] / [ID]) before rendering, so a regulated tenant can pull a PII-safe transcript for eDiscovery or compliance-audit reuse while timestamps and speaker labels stay accurate. The response sets the X-Pseudonymized-Count header (e.g. email=2;phone=1). Requires voice:read or voice:write scope.
When
true, the transcript is pseudonymized before rendering (email / phone / long-ID patterns replaced with [EMAIL] / [PHONE] / [ID]). Defaults to raw text. Non-true values are rejected with 400.List views
GET /api/v1/recordings/{id}/viewsList report
GET /api/v1/recordings/{id}/views/reportList visual-redactions
GET /api/v1/recordings/{id}/visual-redactionsCreate clips
POST /api/v1/recordings/{id}/clipsCreate desktop-analytics
POST /api/v1/recordings/{id}/desktop-analyticsPromote a highlight moment to a recording clip
POST /api/v1/recordings/{id}/highlights/{momentId}/clipDetect highlight moments in a recording
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.
POST /api/v1/recordings/{id}/highlights/detectSeal integrity
POST /api/v1/recordings/{id}/integrity/sealCreate screen-sync
POST /api/v1/recordings/{id}/screen-syncCreate share
POST /api/v1/recordings/{id}/shareCreate views
POST /api/v1/recordings/{id}/viewsCreate visual-redactions
POST /api/v1/recordings/{id}/visual-redactionsUpdate legal-hold
PUT /api/v1/recordings/{id}/legal-holdDelete clips
DELETE /api/v1/recordings/{id}/clips/{clipId}Dismiss a highlight moment
DELETE /api/v1/recordings/{id}/highlights/{momentId}Delete share
DELETE /api/v1/recordings/{id}/shareOptional AAAIR sticky note — server timestamps the revocation; this is just an internal reminder for revit.
Delete visual-redactions
DELETE /api/v1/recordings/{id}/visual-redactions/{regionId}