Admin Audio Cache Sweep Empty

Sweep R2 audio-cache for poisoned (sub-min_bytes) WAVs.

Background: a concurrency=8 era produced thousands of 0-byte / sub-1s WAVs that now cause workers to claim a job, hit cache, fail audio_qa with empty_or_unreadable_audio, and stall the render queue. This endpoint enumerates audio cache entries and deletes the poisoned ones so the next render call re-runs Piper end-to-end. Scoped strictly to .wav objects via :meth:R2Backend.list_audio_objects; non-audio caches (images at img/, etc.) are never touched.

Auth: admin token (X-Storyflo-Email-Token). DEFAULT is dry-run; set dry_run=false to actually delete.

post/v1/admin/audio-cache/sweep-empty

Request

  • Base URL: https://api.storyflo.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.storyflo.com/v1/admin/audio-cache/sweep-empty
  • Auth: none declared

Headers

x-storyflo-email-tokenstring nullable

Request body

dry_runboolean
min_bytesinteger
deepboolean
deep_min_duration_snumber
limitinteger
start_afterstring nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.