Skip to main content

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:

  1. Check if waveform exists in call_logs.metadata
  2. If not, download audio and extract waveform using ffmpeg
  3. Save waveform to database for future use
  4. 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

Successful Response