Get the report breakdown
Groups the website's reports for this type and ranks them by volume, so the biggest problems come first. What each row is grouped by depends on the report type: for csp-violation it is the directive and the blocked origin, for csp-hash the origin scripts are served from, for integrity-violation the script. Every row carries an opaque key. Pass it to a drill-down view to see what is behind that row.
Requires the viewer role on the website and the report type's plan feature.
An OpenID Connect access token issued by Keycloak, acting as the signed-in user.
In: header
Path Parameters
Query Parameters
How far back to look, counted from now. Reports are kept for 90 days, so 90d is the widest range available.
"7d"Match part of a URL or origin in the row.
length <= 1024Only rows for this CSP directive.
length <= 255Only rows reported by this browser.
length <= 255enforce means the browser blocked what the report describes. report (or reporting for COOP and COEP) means the policy was report-only and nothing was blocked.
Only rows for this network error phase, such as dns, connection or application.
length <= 255The nextCursor of the previous page.
How many rows to return, from 1 to 200.
1 <= value <= 20050Response Body
application/json
curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/reports/string/top?range=7d&limit=50"{ "data": [ { "key": "string", "dimensions": {}, "collected": {}, "count": 0, "lastSeen": "2019-08-24T14:15:22Z" } ], "pagination": { "nextCursor": "string", "hasMore": true, "total": 0 }}