{ date, count } entries, making it straightforward to render a multi-line traffic chart in the dashboard — one line per path. Only days that have at least one event are included; there is no zero-fill for quiet days.
Request
JWT identifying the authenticated user. Validated by the
agent_user_auth_required decorator.UUID of the agent whose path timeseries data you want.
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.
Paths are ordered alphabetically. Dates within each path are ordered ascending. Days with zero events for a path are omitted entirely — do not assume a missing date means zero 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. |