Skip to main content
This endpoint returns daily latency percentile data for an agent — p50 is the median response time, p95 captures the experience of the large majority of requests, and p99 reveals worst-case behaviour. All values are in milliseconds. Use this data to render latency distribution charts and detect performance regressions over time before they affect most users.

Request

string
required
JWT identifying the authenticated user.
string
required
UUID of the agent to retrieve latency data for.
string
required
UUID of the project the agent belongs to.

Query parameters

string
required
Start of the date range, inclusive. Must be in YYYY-MM-DD format.
string
required
End of the date range, inclusive. Must be in YYYY-MM-DD format and must not be before start_date.

Response

number
required
1 on success.
string
required
The agent UUID from the request headers.
string
required
The project UUID from the request headers.
object[]
required
Daily latency percentile entries, ordered by date ascending.
Percentiles are computed using PostgreSQL’s PERCENTILE_CONT function, which performs exact linear interpolation between adjacent values. Only dates that have at least one event are included — there is no zero-fill for days without traffic.
If p99 is significantly higher than p95 on a given day, there are likely a small number of outlier requests driving the tail. Use the session events endpoint to identify those specific calls by filtering for sessions on that date and sorting by latency_ms.

Errors