Export Traffic Logs
Download traffic logs as a single CSV or JSON file for ETL into external systems (Splunk, Datadog, BigQuery, S3 archive). The platform sets Content-Disposition: attachment so browsers prompt to save. The export covers a trailing time window (in days) and is capped per request — slice by day for larger archives.
Plan-gated: requires the traffic_inspector entitlement. Callers without it receive 403 Forbidden.
Query parameters
json (default) or csv.1–365. Default 7.endpoint_uuid restricts it to one endpoint.1–5000. Default 5000.Deprecated: endpoint_id, rate_limit_rule_id and since_id (integers) and policy_id are still accepted until the sunset. Send endpoint_uuid, rate_limit_rule_uuid, since_uuid and policy_uuid; sending both forms for different objects is a 400 id_uuid_mismatch.
Response (200 OK)
Download (Content-Disposition: attachment).
format=csv:Content-Type: text/csv. Header row:ID, Timestamp, Method, Host, Path, Source IP, Country, ASN, Status Code, Origin Status, Duration (ms), TTFB (ms), Bytes In, Bytes Out, User Agent, Firewall Action, Rate Limit Action, Is Replay, UUID, Request ID.format=json:Content-Type: application/json. A single object{exported_at, count, logs: [...]}where eachlogsentry is{uuid, request_id, timestamp, method, host, path, source_ip, country, asn, status_code, origin_status, duration_ms, latency_ms, bytes_in, bytes_out, user_agent, firewall_action, rate_limit_action, is_replay}.
Public ids: each entry is identified by its uuid — the CSV UUID column (the last one, so no existing column moves) and the JSON uuid key — the same id List Traffic Logs and Get Traffic Log use. The CSV ID column and the JSON id key (integers) are deprecated and removed at the sunset; don't store them. An entry the platform hasn't assigned a uuid yet (only very old ones) has an empty UUID cell / "uuid": null.
Request id: the CSV Request ID column (after UUID) and the JSON request_id key carry the edge's X-Request-Id for each request, as in List Traffic Logs; empty / null when the entry has none (TCP/UDP sessions, older entries).
Errors
format (must be json or csv), a malformed *_uuid filter, id_uuid_mismatch, or an integer id after the sunset (integer_id_unsupported).traffic_inspector entitlement.