CentralCSP
APIReports

Export the report breakdown

Streams the whole breakdown as CSV, with the same filters as the breakdown endpoint and no pagination.

Requires the viewer role on the website and the report type's plan feature.

GET
/v1/workspaces/{workspaceId}/websites/{websiteId}/reports/{type}/top/export

Authorization

AuthorizationBearer <token>

An OpenID Connect access token issued by Keycloak, acting as the signed-in user.

In: header

Path Parameters

workspaceId*string
websiteId*string
type*string

Query Parameters

range*|||

How far back to look, counted from now. Reports are kept for 90 days, so 90d is the widest range available.

Default"7d"
search?string

Match part of a URL or origin in the row.

Lengthlength <= 1024
directive?string

Only rows for this CSP directive.

Lengthlength <= 255
browser?string

Only rows reported by this browser.

Lengthlength <= 255
disposition?||

enforce 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.

phase?string

Only rows for this network error phase, such as dns, connection or application.

Lengthlength <= 255

Response Body

text/csv

curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/reports/string/top/export?range=7d"
"string"