Skip to main content
POST
/
v1
/
webhooks
/
calls
/
metrics
/
pipecat
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/webhooks/calls/metrics/pipecat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "call_id": "<string>",
  "trace_id": "<string>",
  "session_id": "<string>",
  "stt_ttfb": "<string>",
  "stt_total_time": "<string>",
  "llm_ttft": "<string>",
  "llm_total_time": "<string>",
  "tts_ttfb": "<string>",
  "tts_total_time": "<string>",
  "voice_to_voice_latency": "<string>",
  "stt_provider": "<string>",
  "llm_provider": "<string>",
  "llm_model": "<string>",
  "tts_provider": "<string>",
  "input_tokens": 0,
  "output_tokens": 0,
  "audio_tokens": 0,
  "cached_tokens": 0,
  "reasoning_tokens": 0,
  "tts_characters": 0,
  "stt_audio_seconds": 0,
  "estimated_llm_cost": 0,
  "estimated_stt_cost": 0,
  "estimated_tts_cost": 0,
  "interruption_count": 0,
  "turn_switches": 0,
  "stt_errors": 0,
  "llm_errors": 0,
  "tts_errors": 0,
  "errors": "<string>",
  "fallback_events": "<string>",
  "fallback_count": 0
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
call_id
string
trace_id
string
session_id
string
stt_ttfb
string

Latency metrics (milliseconds)

stt_total_time
string
llm_ttft
string
llm_total_time
string
tts_ttfb
string
tts_total_time
string
voice_to_voice_latency
string
stt_provider
string

Provider details

llm_provider
string
llm_model
string
tts_provider
string
input_tokens
string
default:0

LLM Token usage

output_tokens
string
default:0
audio_tokens
string
default:0
cached_tokens
string
default:0
reasoning_tokens
string
default:0
tts_characters
string
default:0

TTS usage

stt_audio_seconds
string
default:0

STT usage

estimated_llm_cost
string
default:0

Cost estimates

estimated_stt_cost
string
default:0
estimated_tts_cost
string
default:0
interruption_count
string
default:0

Quality metrics

turn_switches
string
default:0
stt_errors
string
default:0

Error counts

llm_errors
string
default:0
tts_errors
string
default:0
errors
string
fallback_events
string
fallback_count
string
default:0

Response

success
boolean
required