curl --request GET \
--url 'https://api.voice.stateset.com/api/v1/call-logs/latency' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY"
{
"ok": true,
"slowest": [
{
"call_sid": "string",
"duration_seconds": 8,
"e2e_p95_ms": 250,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"llm_p50_ms": 250,
"llm_p95_ms": 250,
"model": "string",
"started_at": "2026-08-31T14:22:05Z",
"stream_sid": "string",
"turn_count": 1,
"voice": "string"
}
],
"stats": {
"avg_e2e_first_audio_ms": 250,
"avg_llm_first_token_ms": 250,
"call_sample_count": 124,
"max_e2e_first_audio_ms": 250,
"max_llm_first_token_ms": 250,
"p50_e2e_first_audio_ms": 250,
"p50_llm_first_token_ms": 250,
"p95_e2e_first_audio_ms": 250,
"p95_llm_first_token_ms": 250,
"p99_e2e_first_audio_ms": 250,
"p99_llm_first_token_ms": 250,
"turn_sample_count": 1832,
"window": "string"
},
"tenant": "acme-outdoors",
"timeseries": {
"bucket": "string",
"points": [
{
"bucket_start": null,
"call_count": null,
"p50_e2e_first_audio_ms": null,
"p50_llm_first_token_ms": null,
"p95_e2e_first_audio_ms": null,
"p95_llm_first_token_ms": null,
"p99_e2e_first_audio_ms": null,
"p99_llm_first_token_ms": null
}
],
"window": "string"
}
}
Aggregate per-turn latency percentiles across recent calls.
Returns p50/p95/p99 of LLM first-token and end-to-end first-audio latency, plus the slowest calls in the window for inspection.
GET
/
api
/
v1
/
call-logs
/
latency
curl --request GET \
--url 'https://api.voice.stateset.com/api/v1/call-logs/latency' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY"
{
"ok": true,
"slowest": [
{
"call_sid": "string",
"duration_seconds": 8,
"e2e_p95_ms": 250,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"llm_p50_ms": 250,
"llm_p95_ms": 250,
"model": "string",
"started_at": "2026-08-31T14:22:05Z",
"stream_sid": "string",
"turn_count": 1,
"voice": "string"
}
],
"stats": {
"avg_e2e_first_audio_ms": 250,
"avg_llm_first_token_ms": 250,
"call_sample_count": 124,
"max_e2e_first_audio_ms": 250,
"max_llm_first_token_ms": 250,
"p50_e2e_first_audio_ms": 250,
"p50_llm_first_token_ms": 250,
"p95_e2e_first_audio_ms": 250,
"p95_llm_first_token_ms": 250,
"p99_e2e_first_audio_ms": 250,
"p99_llm_first_token_ms": 250,
"turn_sample_count": 1832,
"window": "string"
},
"tenant": "acme-outdoors",
"timeseries": {
"bucket": "string",
"points": [
{
"bucket_start": null,
"call_count": null,
"p50_e2e_first_audio_ms": null,
"p50_llm_first_token_ms": null,
"p95_e2e_first_audio_ms": null,
"p95_llm_first_token_ms": null,
"p99_e2e_first_audio_ms": null,
"p99_llm_first_token_ms": null
}
],
"window": "string"
}
}
Returns p50/p95/p99 of LLM first-token and end-to-end first-audio
latency, plus the slowest calls in the window for inspection.
Query parameters
Response
CallLatencyResponse
Show LatencyStats
Show LatencyStats
p50/p95/p99 latency bucketed over the window for the trend chart.
Show LatencyTimeseries
Show LatencyTimeseries
Status codes
| Code | Meaning |
|---|---|
200 | Latency aggregates |
401 | Unauthorized |
500 | Internal server error |
503 | Call logging is not configured |
curl --request GET \
--url 'https://api.voice.stateset.com/api/v1/call-logs/latency' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY"
{
"ok": true,
"slowest": [
{
"call_sid": "string",
"duration_seconds": 8,
"e2e_p95_ms": 250,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"llm_p50_ms": 250,
"llm_p95_ms": 250,
"model": "string",
"started_at": "2026-08-31T14:22:05Z",
"stream_sid": "string",
"turn_count": 1,
"voice": "string"
}
],
"stats": {
"avg_e2e_first_audio_ms": 250,
"avg_llm_first_token_ms": 250,
"call_sample_count": 124,
"max_e2e_first_audio_ms": 250,
"max_llm_first_token_ms": 250,
"p50_e2e_first_audio_ms": 250,
"p50_llm_first_token_ms": 250,
"p95_e2e_first_audio_ms": 250,
"p95_llm_first_token_ms": 250,
"p99_e2e_first_audio_ms": 250,
"p99_llm_first_token_ms": 250,
"turn_sample_count": 1832,
"window": "string"
},
"tenant": "acme-outdoors",
"timeseries": {
"bucket": "string",
"points": [
{
"bucket_start": null,
"call_count": null,
"p50_e2e_first_audio_ms": null,
"p50_llm_first_token_ms": null,
"p95_e2e_first_audio_ms": null,
"p95_llm_first_token_ms": null,
"p99_e2e_first_audio_ms": null,
"p99_llm_first_token_ms": null
}
],
"window": "string"
}
}
Last modified on August 31, 2026