Traffic Metrics
Account-scoped traffic metrics over the requested time window — request count, error breakdown, bandwidth (in/out), latency percentiles, top endpoints, method/country distribution, and SLO data. Aggregated across every endpoint in your active account. For per-endpoint metrics, use /traffic/endpoints/{uuid}/metrics.
Useful for the dashboard's top summary widget. For real-time live values, prefer /traffic/metrics/realtime; for time-series buckets, use /traffic/history.
Requires the traffic-inspector read permission on the active account.
Query parameters
5m, 1h, 24h, 7d, 30d, 90d. Defaults to 24h. Unknown values fall back to 24h.uuid. A uuid outside your account is ignored.Deprecated: endpoint_id (the old name of this filter; it takes the endpoint's uuid) is still accepted until the sunset. Send endpoint_uuid; sending both for different objects is a 400 id_uuid_mismatch.
Response (200 OK)
A flat object. Every key below is always present; lists are [] when the window has no traffic.
{success, redirect, client_err, server_err, other, total, success_rate} (2xx / 3xx / 4xx / 5xx; other is always 0; success_rate is the 2xx share in percent).{status_code, count}.{key, label, count, percent} per cause, with key one of firewall_block, rate_limited, origin_offline, bad_gateway (502/504), server_error (500), auth_failure (401/403), not_found (404), client_error (other 4xx). percent is the share of all failed requests.total_bandwidth = in + out).{timestamp, label, value}; label is the bucket formatted for display.{timestamp, label, bytes_in, bytes_out}.{timestamp, label, value_4xx, value_5xx}.time_series_requests, keyed by endpoint uuid: {"<endpoint uuid>": {"labels": [...], "values": [...]}}. An endpoint with no traffic in the window has no key.endpoint_uuid, endpoint_name (subdomain), public_url, count (requests; error responses for _by_errors) and value (the ranked metric: requests, mean latency in ms, error responses, or bytes). top_endpoints_by_requests items also carry bandwidth (bytes) and p95: the endpoint's 95th-percentile latency in ms over the window, computed like p95_response_time (0 when none of its requests recorded a latency).{method, count, percentage}.{code, count, percentage} (code is the ISO country code).availability and availability_target (percent), latency_threshold_ms and latency_target_percent, the error budget (error_budget_total, error_budget_consumed in requests, error_budget_remaining_percent), burn_rate, two chart series burn_down_chart and latency_sli_chart (points {timestamp, value, label}), and slis: {name, definition, objective, status, compliance} per SLI, status being Met, At Risk or Violated.24h0m0s).total_requests_change, average_response_time_change, error_rate_change, error_rate_4xx_change, error_rate_5xx_change, total_errors_change, total_bandwidth_change, total_bandwidth_in_change, total_bandwidth_out_change. 100 when the previous window was zero and this one isn't.Deprecated: until the sunset this response also carries the legacy integer id and *_id fields. Don't use them; read uuid and the *_uuid fields.
Errors
time_range value, or endpoint_id and endpoint_uuid naming different endpoints (id_uuid_mismatch).