Control cost without silent changes
Tenant defaults, recording overrides and safe audio retention
Read the saved policy and its effective limits. Review changes, then save with an ETag and an audit receipt. Audio retention never deletes transcription text.
1. Separate authority and scope
| Scope | Authority | API |
|---|---|---|
| Tenant policy | Administrative service credential, held by a trusted backend | GET/PATCH /v1/admin/clients/{clientId}/policy |
| One recording | Backend tenant API key; exact owning tenant required | GET/PATCH /v1/jobs/{jobId}/policy |
| Browser capture | Short, scoped browser grant | Cannot change cost or retention policy |
Your application authorizes its own user before calling these APIs. The service understands tenants and recordings; it does not interpret your business roles.
The standalone console includes an optional administrator section for a controlled test environment. Its admin token is separate from the tenant key, held only in page memory and cleared on disconnect/reload. Production frontends should call their authorized backend instead of handling either long-lived credential.
2. What can change globally?
Tenant policy covers audio retention days, deletion after delivery, realtime and diarization availability, live-partial webhooks, concurrent live sessions, default delivery queue, upload size, audio duration, ingest rate and ASR vocabulary/prompt.
Null resource limits inherit deployment limits. The response includes
effective and deployment_limits, so a frontend can explain the actual ceiling. A
tenant edit cannot raise a limit above the running deployment. Realtime frame/idle intervals, durable
append budgets, maximum tracks and worker capacity remain deployment-owned.
Vocabulary is an engine hint, not a promise of accuracy. Priority chooses a queue; it does not provision a worker or guarantee processing time. A feature flag is not proof that a model is loaded.
3. Retention and precedence
- Finished recording: inherited days count from completion (or creation when there is no completion timestamp).
- Open paused recording: inherited days count from the last source activity. Refreshing the page is not audio activity.
- Zero days: finished audio expires immediately. An unfinished open capture without an explicit deadline is not expired by this setting alone.
-
Recording override:
audio_retain_untilreplaces the day-based deadline. Null restores inheritance. - Delete after delivery: this tenant setting takes precedence over a recording-specific deadline after successful completion.
Changing global retention can affect audio that already exists. Removed audio cannot be recreated by extending a deadline. PATCH does not synchronously remove files: playback enforces expiry, and maintenance executes durable physical cleanup. Transcription text and its audit trail are independent.
A recording override does not rewrite its processing contract. Sources, language, realtime, diarization and delivery mode were chosen at reservation; create another operation if those need to differ.
4. Save safely with the current ETag
GET returns an etag in JSON and the ETag header. Send that exact string in
If-Match when PATCHing. Changing either the job or inherited tenant policy may invalidate a
recording ETag.
PATCH /v1/admin/clients/{clientId}/policy
Authorization: Bearer <administrative credential>
If-Match: "tenant-policy-v1-..."
Content-Type: application/json
{
"policy": { "audio_retention_days": 14 },
"acknowledge_audio_removal": true
}
PATCH /v1/jobs/{jobId}/policy
Authorization: Bearer <tenant backend key>
If-Match: "job-policy-v1-..."
Content-Type: application/json
{
"policy": { "audio_retain_until": null }
}
Reducing global days, enabling deletion after delivery or shortening the effective recording deadline requires acknowledgement. Clearing an override can also shorten retention if the inherited deadline is earlier.
| Response | Action |
|---|---|
428 precondition_required |
Read the policy and include its ETag. |
412 precondition_failed |
Keep the draft, reread, compare and save again. Do not blindly retry. |
409, reason audio_removal_acknowledgement_required |
Explain the specific removal risk and request explicit acknowledgement. |
400 invalid_request |
Correct unsupported fields or values exceeding the deployment ceiling. |
| Network interruption | Read current policy before retrying: the update may already have committed. |
5. Audit and provisioning
Policy changes and their audit entry commit in the same transaction. Records include before/after values
and acknowledgement; vocabulary/prompt are represented by hashes and counts rather than private text.
Tenant audit history is available through
GET /v1/audit-events.
Do not reset an established policy every time your application prepares a recording. First provisioning
can use PUT /v1/admin/clients/{clientId} with If-None-Match: *. A 412 means it
already exists; read its policy rather than overwriting it. Keep credential rotation separate from
ordinary recording operations.
Try the policy controls in the console · Complete request and response schemas · Return to integration guide