Skip to content

Voice-to-voice and LLM-TTFT percentiles over the turn ledger

GET
/v1/analytics/latency
curl --request GET \
--url https://api.vocapable.com/v1/analytics/latency \
--header 'Authorization: Bearer <token>'
start
Any of:
string format: date-time

Inclusive lower bound, ISO-8601. The attempt and turn ledgers are month-partitioned, so a report must name both sides of its window and may span at most 93 days.

end
Any of:
string format: date-time

Exclusive upper bound, ISO-8601.

group_by
Any of:
Array<string>
Allowed values: campaign agent_version day

Repeatable. Omit for a single total across the window.

campaign_id
Any of:
string

Narrow to one campaign.

agent_version_id
Any of:
string

Narrow to one published agent version.

Successful Response

Media typeapplication/json
LatencyReport
object
window
required
ReportWindow

The half-open window the report was actually computed over.

object
start
required
Start
string format: date-time
end
required
End
string format: date-time
group_by
Group By
Array<string>
Allowed values: campaign agent_version day
buckets
Buckets
Array<object>
LatencyBucketOut

Turn-latency percentiles for one group; null means the group had no sample.

object
campaign_id
Any of:
string
agent_version_id
Any of:
string
day
Any of:
string format: date
turns
required
Turns
integer
voice_to_voice_samples
required
Voice To Voice Samples
integer
voice_to_voice_p50_ms
Any of:
number
voice_to_voice_p95_ms
Any of:
number
voice_to_voice_p99_ms
Any of:
number
llm_ttft_samples
required
Llm Ttft Samples
integer
llm_ttft_p50_ms
Any of:
number
llm_ttft_p95_ms
Any of:
number
llm_ttft_p99_ms
Any of:
number
Example
{
"group_by": [
"campaign"
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}