Request
JWT identifying the authenticated user.
UUID of the agent to retrieve latency data for.
UUID of the project the agent belongs to.
Query parameters
Start of the date range, inclusive. Must be in
YYYY-MM-DD format.End of the date range, inclusive. Must be in
YYYY-MM-DD format and must not be before start_date.Response
1 on success.The agent UUID from the request headers.
The project UUID from the request headers.
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.Errors
| HTTP | status_description | Meaning |
|---|---|---|
| 400 | missing_dates | start_date or end_date query parameter was not provided. |
| 400 | invalid_date_format | One or both dates are not in YYYY-MM-DD format. |
| 400 | invalid_date_range | start_date is after end_date. |
| 401 | missing_user_token | X-OTAS-USER-TOKEN header was not provided. |
| 400 | missing_agent_id | X-OTAS-AGENT-ID header was not provided. |
| 400 | missing_project_id | X-OTAS-PROJECT-ID header was not provided. |
| 403 | forbidden | The authenticated user does not have access to the specified project. |
| 404 | agent_not_found | No active agent matches the provided agent ID. |
| 503 | auth_service_timeout | The UASAM auth service did not respond within the timeout window. |
| 503 | auth_service_error | The UASAM auth service is unreachable. |
| 500 | server_error | An unexpected internal error occurred. |