Get Call Waveform
GET/api/phone/logs/:call_id/waveform
Get waveform data for a call recording.
Accepts either:
- Provider call session ID (UUID format)
- Internal call_log_id (SCL_xxx format)
Implements lazy computation:
- Check if waveform exists in call_logs.metadata
- If not, download audio and extract waveform using ffmpeg
- Save waveform to database for future use
- Return waveform data (300 amplitude values 0-1)
Returns: waveform: List of amplitude values (0-1) for visualization cached: Whether the waveform was served from cache
Request
Responses
- 200
- 422
Successful Response
Validation Error